Converting XDP Documents into PDF Documents

You can use the PDF Utilities Java and web service APIs to programmatically convert XDP documents into PDF documents.

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

Summary of steps

To convert an XDP document into a PDF document, perform the following steps:

  1. Include project files.

  2. Create a PDFUtilityService client.

  3. Invoke the XDP to PDF conversion 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 by using a PDFUtilityServiceService object.

Invoke the XDP to PDF conversion operation

After you create the service client, you can invoke the XDP to PDF conversion operation.

Convert XDP documents into PDF documents using the Java API

Convert XDP documents into PDF documents 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 XDP to PDF conversion operation

    To perform the conversion, invoke the PDFUtilityServiceClient object’s convertXDPtoPDF method and pass in a com.adobe.idp.Document object that represents the XDP file. The method returns a com.adobe.idp.Document object that represents the newly created PDF file.

Converting XDP documents into PDF documents using the web service API

Convert XDP documents into PDF documents by using the PDF Utilities API (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 XDP to PDF conversion operation

    To perform the conversion, invoke the PDFUtilityServiceService object’s convertXDPtoPDF method and pass in a BLOB object that represents the XDP file. The method returns a BLOB object that represents the newly created PDF file.

// Ethnio survey code removed