Take a survey

Developing Applications Using APIs > Assembling PDF Documents > Programmatically Assembling PDF Documents > Assembling PDF documents using the web service API

Assembling PDF documents using the web service API
To assemble PDF documents using the Assembler service client web service API, perform the following tasks:
1.
2.
Create an AssemblerServiceService object by using your proxy class’ constructor.
3.
Invoke the AssemblerServiceService object’s invoke method and pass the following required values:
A BLOB object that represents the DDX document to be used.
A mapItem[] object that contains the files to assemble. It’s keys should be the names of the PDF source files, and its values should be the BLOB objects corresponding to those files.
An AssemblerOptionSpec object that specifies the environment parameters, including default font and job log level.
4.
The invokeDDX method returns a AssemblerResult object that contains the results of the DDX job and any exceptions that may have occurred. To obtain the newly created PDF document, perform the following actions:
Access the AssemblerResult object’s documents field, which is a mapItem[] object containing the result PDF documents.
Iterate through the java.util.Map object until you find the key matching the name of the resultant PDF document. 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.
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/assemblePDFEJB_API.94.4.html