|
|
To convert an HTML document to a PDF document using the Generate PDF service client web service API, perform the following tasks:
•
• Create a GeneratePDFServiceService object or GeneratePDFServiceServiceWse object (if DIME attachments are used) by using your proxy class’ constructor.
• A java.lang.String object that contains the file type settings to be used in the conversion. File type settings can include spidering levels.
• 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 HtmlToPDF 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 attachment identifier 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.
• 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.
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/generatePdfHTMLToPDF.67.4.html