Code Samples - Neevia docCreator

Example 16: Extract a page from an existing PDF file - Visual Basic Copy 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
   Dim pageToExtract : pageToExtract=2

   Dim DC : Set DC = CreateObject("Neevia.docCreator")

   Dim RVal
   RVal = DC.extractPDFPages("d:\test.pdf","d:\page.pdf", pageToExtract, pageToExtract)

   Set DC = Nothing

   If RVal=0 Then
     MsgBox "Done !!!"
   Else
     MsgBox "There was an error extracting the page !!!"
   End If