Retrieving PDF Document Properties

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.

Note: For more information about the PDF Utilities service, see Services Reference for LiveCycle�.

Summary of steps

To retrieve PDF document properties, perform the following steps:

  1. Include project files.

  2. Create a PDFUtilityService client.

  3. Invoke the properties retrieval 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.

Invoke the properties retrieval operation

After you create the service client, you can invoke the properties retrieval operation.

Retrieve PDF document properties using the Java API

Retrieve PDF document properties by using the PDF Utilities API (Java):

  1. Include project files

    Include client JAR files, such as adobe-pdfutility-client.jar, in your Java project’s class path.

  2. Create a PDFUtilityService client

    Create a PDFUtilityServiceClient object by using its constructor and passing a ServiceClientFactory object that contains connection properties.

  3. Invoke the properties retrieval operation

    To perform the conversion, invoke the PDFUtilityServiceClient object’s getPDFProperties method and pass in the following:

    • A com.adobe.idp.Document object that represents the PDF document.

    • A PDFPropertiesOptionSpec object that contains the properties to be evaluated.

    The method returns a PDFPropertiesResult object that contains the results of the query.

Retrieve PDF document properties using the web service API

Retrieve PDF document properties by using the PDF Utilities web service API:

  1. Include project files

    • Create a Microsoft .NET client assembly that consumes the PDF Utilities service WSDL file.

    • Reference the Microsoft .NET client assembly.

  2. Create a PDFUtilityService client

    Create a PDFUtilityServiceService object by using your proxy class constructor.

  3. Invoke the properties retrieval operation

    To perform the conversion, invoke the PDFUtilityServiceService object’s getPDFProperties method and pass in the following:

    • A BLOB object that represents the PDF document.

    • A PDFPropertiesOptionSpec object that contains the properties to be evaluated.

    The method returns a PDFPropertiesResult object that contains the results of the query.

// Ethnio survey code removed