ActivePDF will be closed Monday September 6th in observance of the Labor Day Holiday.

ActivePDF
Shopping Cart My Account Help Contact Us
Request a Call
Search
Products Solutions Support Downloads Corporate
Submit an Issue
Knowledge Base
Server Product Support
Examples & How-Tos
Support Options
Support Policies
Annual Subscription
Extensions
Documentation
Resource Links
   
 
 
 
 

HomeSupportKnowledge Base
 
activePDF KB #11688 - Converting PostScript to PDF using Server
activePDF KB #11688 - Converting PostScript to PDF using Server
Information: Example Printer Version | Return to Search
Converting PostScript to PDF using Server
 
Product Version Code Samples    
Server
3.5.2
VBS
VB.NET
C#
ASP
CF
PHP
 
Description
 
The following VBScript example demonstrates the PSToPDF Server method, which converts a PostScript® file to PDF.

NOTE: This example is available in other script languages, you may select from the Code Sample list above to download the example in the language appropriate for your environment.

These files are required:
  • postscript.PS - The PS file to convert to PDF.
  • PSToPDF.VBS - Code detail provided below.
Click here to download this example for VBScript (includes required files):


Example:
' Variables

' Name of PS file to convert
strPSFileName = "postscript.ps"

' Name of PDF file to create
strPDFFileName = "ps.pdf"

' Instantiate activePDF Server Object
Set objSVR = CreateObject("APServer.Object")

' PSToPDF
lngRtn = objSVR.PSToPDF(strPSFileName, strPDFFileName)
If lngRtn = 0 Then
msgbox "Done!"
Else
errorRtn "PSToPDF", lngRtn
End If

' Release Object
Set objSVR = Nothing

' Error Return Handling
Sub errorRtn(strMethod, RtnCode)
msgbox strMethod & " error: " & RtnCode & VBCRLF & _
"http://www.activepdf.com/support/kb/?id=10549&tk=ts"
End Sub
 
Keywords
 
PSToPDF, server, postscript
 
Last Updated 2008-04-20 Printer Version | Return to Search
 
Knowledge Base Article Feedback*
*KB article feedback ONLY (submit support issues here)
Quality of this article?
  Poor Excellent 
1 2 3 4 5 6 7 8 9 10
Is this article helpful? Yes       No       Maybe
Comments (Optional)
Email Address (Optional)
Please enter the word "PDF"
(without quotes)
 
The information in this article is for the use of activePDF Customers and Evaluation Users Only. No part of this document may be transmitted or reproduced without the express written consent of activePDF.

Copyright © 2005, activePDF, Inc. All Rights Reserved
2003 activePDF Site Map Feedback Privacy Policy Legal