Code Samples - Neevia docCreator

Example 10: Convert a PDF file into TIFF - ASP Copy 

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

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

     DC.setParameter "DocumentOutputFormat", "TIFF"
     DC.setParameter "DocumentOutputName", "testTIFF_ASP"
     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 
       Response.Write "Error converting document!!!"
     else
       Response.Write "Done converting!!!"
     End If
   %>