You
can use the PDF Utilities Java and web service APIs to programmatically retrieve
PDF document properties, such as whether the document is a fillable form
or the minimum Acrobat version required to read the document.
Summary of stepsTo retrieve PDF document properties, perform the following
steps:
Include project files.
Create a PDFUtilityService client.
Invoke the properties retrieval operation.
Include project filesInclude 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 clientBefore 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.
Invoke the properties retrieval operationAfter you create the
service client, you can invoke the properties retrieval operation.
Retrieve PDF document properties using the Java APIRetrieve PDF document properties by using the PDF Utilities
API (Java):
Include project files
Include client JAR files,
such as adobe-pdfutility-client.jar, in your Java project’s class
path.
Create a PDFUtilityService client
Create a PDFUtilityServiceClient object
by using its constructor and passing a ServiceClientFactory object
that contains connection properties.
Invoke the properties retrieval operation
To perform
the conversion, invoke the PDFUtilityServiceClient object’s getPDFProperties method
and pass in the following:
The method returns
a PDFPropertiesResult object that contains the results
of the query.
Retrieve PDF document properties using the web service APIRetrieve PDF document properties by using the PDF Utilities
web service API:
Include project files
Create a PDFUtilityService client
Create a PDFUtilityServiceService object
by using your proxy class constructor.
Invoke the properties retrieval operation
To perform
the conversion, invoke the PDFUtilityServiceService object’s getPDFProperties method
and pass in the following:
The method returns
a PDFPropertiesResult object that contains the results
of the query.
|
|
|