Take a survey

Developing Applications Using APIs > Converting Postscript to PDF Documents > Converting to PDF documents > Converting a PostScript file to PDF using the web service API

Converting a PostScript file to PDF using the web service API
To convert a PS, EPS, or PRN file to a PDF document using the Distiller service client web service API, perform the following tasks:
1.
2.
Create a DistillerServiceService object by using your proxy class’ constructor.
3.
Invoke the DistillerServiceService object’s CreatePDF method and pass the following required values:
A BLOB object that represents the PS, EPS, or PRN file to be converted.
An optional BLOB object containing settings to be applied while generating the PDF document.
An optional BLOB object containing metadata information to be applied to the PDF document.
The CreatePDF method returns a mapItem[] object (shown as the result variable in the steps below) that contains the new PDF document and log file. To obtain the newly created PDF document and the log file, perform the following actions:
Retrieve the new PDF document by iterating through the mapItem[] object and searching for the "ConvertedDoc" key in the mapItem[] object. Then cast that array member’s value to a BLOB. Similarly, you can retrieve the log file by searching for the "LogDoc" key in the mapItem[] object. In this case, the log file is a text file.
Extract the binary data representing the PDF document by accessing its BLOB object’s binaryData property. This returns an array of bytes that you can write out to a PDF file.
View Quick Start
 

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/convertPSConversions.61.4.html