Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia docCreator code samples
Example 8: Convert a PostScript document into PDF from ASP  Print Example 


<%

  Dim documentToConvert : documentToConvert="d:\test.ps"

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

  DC.setParameter "DocumentOutputFormat", "PDF"
  DC.setParameter "DocumentOutputName", "testPS_ASP"
  DC.setParameter "DocumentOutputFolder", "d:\"

  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

%>



Copyright © 1999-2016 Neevia Technology. All Rights Reserved. Home | Products | Technical Support | About Us | Contact Us