Code Samples - Neevia docCreator

Example 10: Convert a PDF file into TIFF - Visual Basic Copy 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
   Dim documentToConvert : documentToConvert="c:\users\public\test.pdf"

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

   DC.setParameter "DocumentOutputFormat", "TIFF"
   DC.setParameter "DocumentOutputName", "testTIFF_VB"
   DC.setParameter "DocumentOutputFolder", "c:\users\public\"

   DC.setParameter "TIFFType", "tiff24lzw"
   DC.setParameter "DocumentResolution", "150"
   DC.setParameter "MPTiff", "true"

   DC.setInputDocument documentToConvert
   Dim RVal : RVal = DC.Create  
   Set DC = Nothing

   If (RVal <> 0) Then 
     MsgBox "Error converting document!!!"
   else
     MsgBox "Done converting!!!"
   End If