To set the save option for PDF documents, perform the following
steps:
Include project files.
Create a PDFUtilityService client.
Set the save mode.
Invoke the save operation.
Pass the PDF document to another operation.
Include project files
Include necessary files into your development
project. If you are creating a client application using Java, include
the necessary JAR files. If you are using web services, ensure that
you include the proxy files.
Create a PDFUtilityService client
Before you can programmatically
perform a PDF Utilities operation, you must create a PDFUtilityService
client. With the Java API, this is accomplished by creating a PDFUtilityServiceClient object.
With the web service API, this is accomplished using a PDFUtilityServiceService object.
Set the Save mode
You can choose one of the following save
options:
INCREMENTAL: To save incrementally
to reduce the time required to save
FAST_WEB_VIEW: save for fast web viewing
FULL: To save using a full save (without
optimizations)
Invoke the save style operation
After you create the service
client, you can invoke the properties retrieval operation.
Pass the PDF document to another LiveCycle operation
Once
the PDF Utilities service sets the specified Save mode, pass the
PDF document to another LiveCycle operation. Once returned
from that operation, the PDF document is saved in the specified
mode. For example, if you use the PDF Utilities service to set the FAST_WEB_VIEW mode
and then pass the PDF document to the Encryption service’s encryptUsingPassword operation,
the returned PDF document is encrypted with a password and save
in the FAST_WEB_VIEW mode.
Note: The
Quick Start that is associated with this section sets the FAST_WEB_VIEW mode
and then passes the PDF document to the Encryption service’s encryptUsingPassword operation.