Code Samples - Neevia docCreator

Example 8: Convert a PostScript document into PDF - ASP 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.ps"

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

     DC.setParameter "DocumentOutputFormat", "PDF"
     DC.setParameter "DocumentOutputName", "testPS_ASP"
     DC.setParameter "DocumentOutputFolder", "c:\users\public\"

     Dim RVal : RVal = DC.setInputDocument(documentToConvert)
     If (RVal <> 0) Then Response.Write "Invalid input document!!!"

     RVal = DC.create
     Set DC = Nothing

     If (RVal <> 0) Then 
       Response.Write "Error while converting the document!!!"
     else
       Response.Write "Done!!!"
     End If
   %>