Document Generation

Communications document generation APIs help to combine a template (XFA or PDF) with customer data (XML) to generate documents in PDF and Print Formats like PS, PCL, DPL, IPL, and ZPL formats. These APIs utilize PDF and XFA templates with XML data to generate a single document on demand or multiple documents using a batch job.

Typically, you create a template using Designer and use Communications APIs to merge data with the template. Your application can send the output document to a network printer, a local printer, or to a storage system for archival. A typical out of the box and custom workflows look like the following:

Communications document generation Workflow

Depending on the use case, you can also make these documents available for download via your Website or a storage server.

Key Document Generation Capabilities

Create PDF documents

You can use the document generation APIs to create a PDF document that is based on a form design and XML form data. The output is a non-interactive PDF document. That is, users cannot enter or modify the form data. A basic workflow is to merge XML form data with a form design to create a PDF document. The following Illustration shows the merging of a form design and XML form data to produce a PDF document.

Create PDF documents
Figure: Typical workflow to create a PDF document

The document generation API returns the generated PDF document. You can also optionally upload the generated PDFs to Azure Blob Storage.

Uploading the generated PDFs using document generation API to Azure Blob Storage capability is under Early Adopter Program. You can write to aem-forms-ea@adobe.com from your official email id to join the early adopter program and request access to the capability.

Create PostScript (PS), Printer Command Language (PCL), Zebra Printing Language (ZPL) document

You can use document generation APIs to create PostScript (PS), Printer Command Language (PCL), and Zebra Printing Language (ZPL) document that is based on an XDP form design or PDF document. These APIs help to merge a form design with form data to generate a document. You can save the document to a file and develop a custom process to send it to a printer.

Processing batch data to create multiple documents

You can use document generation APIs to create separate documents for each record within an XML batch data source. You can generate documents in bulk and asynchronous mode. You can configure various parameters for the conversion and then start the batch process.

Create PDF Documents

Document Manipulation

Communications document manipulation (Document Transformation) APIs help to combine, rearrange PDF documents. Typically, you create a DDX and submit it to document manipulation APIs to assemble or rearrange a document. The DDX document provides instructions on how to use the source documents to produce a set of required documents. The DDX reference documentation provides detailed information about all the supported operations.

Key Document Manipulation Capabilities

Assemble PDF documents

You can use the document manipulation APIs to assemble two or more PDF or XDP documents into a single PDF document or PDF Portfolio. Here are some of the ways that you can assemble PDF documents:

  • Assemble a simple PDF document
  • Create a PDF Portfolio
  • Assemble encrypted documents
  • Assemble documents using Bates numbering
  • Flatten and assemble documents

Assembling a simple PDF document from multiple PDF documents
Figure: Assembling a simple PDF document from multiple PDF documents