Performing Service Operations Using APIs > Creating Document Output Streams > Flattening PDF Documents

Flattening PDF Documents
You can use the Output service to transform an interactive PDF document to a non-interactive PDF. An interactive PDF document lets users enter or modify data that is in the PDF document fields. The process of transforming an interactive PDF document to a non-interactive PDF document is called flattening. When a PDF document is flattened, a user cannot modify the data in the document fields. One reason to flatten a PDF document is to ensure that data cannot be modified.
You can flatten the following types of PDF documents:
Attempting to flatten a PDF that is a non-interactive PDF document causes an exception.
Note: For more information about the Output service, service, see LiveCycle ES Services.
Summary of steps
To flatten an interactive PDF document to a non-interactive PDF document, perform the following steps:
1.
2.
3.
4.
5.
Include project files
Include the necessary files in your development project. If you are creating a client application by using Java, include the necessary JAR files. If you are by using web services, make sure that you include the proxy files.
The following JAR files must be added to your project’s class path:
If LiveCycle ES is deployed on a supported J2EE application server that is not JBoss, you will need to replace the adobe-utilities.jar and jbossall-client.jar files with JAR files that are specific to the J2EE application server on which LiveCycle ES is deployed. For information about the location of all LiveCycle ES JAR files, see Including LiveCycle ES Java library files.
Create an Output Client object
Before you can programmatically perform an Output service operation, you must create an Output service client object. If you are using the Java API, create an OutputClient object. If you are using the Output web service API, create an OutputServiceService object.
Retrieve an interactive PDF document
Retrieve an interactive PDF document that you want to transform to a non-interactive PDF document. Attempting to transform a non-interactive PDF document, causes an exception.
Transform the PDF document
After you retrieve an interactive PDF document, you can transform it to a non-interactive PDF document. The Output service returns a non-interactive PDF document.
Save the non-interactive PDF document as a PDF file
You can save the non-interactive PDF document as a PDF file.
 

Performing Service Operations Using APIs > Creating Document Output Streams > Flattening PDF Documents

Programming with LiveCycle ES (LiveDocs)
Adobe LiveCycle ES Update 1

 

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

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000387.html