Adobe Experience Manager Forms as a Cloud Service - Communications (1.0.0-oas3)
Adobe Experience Manager Forms as a Cloud Service - Communications APIs.
Communications APIs help you combine XFA-based XDP or PDF templates and Acrobat Forms (AcroForm) with XML data to generate print documents in various formats. It enables you to create applications that let you:
- Generate documents by populating template files with XML data. For example, receipts, bills, and statements.
- Generate forms in various formats, including non-interactive PDF print streams.
- Generate print PDFs from XFA form PDFs.
- Generate PDF, PostScript, PCL, and ZPL documents in bulk by merging multiple sets of data with source templates.
These APIs help generate documents in bulk. To setup you environment to use the APIs, see Use batch processing
The API reference documentation is also available in the .yaml format. You can download the .yaml for batch APIs and upload it to postman to check functionality of the APIs.
Create a batch configuration
Request Body schema: application/json
configName required | string (ConfigName) |
dataSourceConfigUri required | string This is the location of data source configuration containing details of cloud config (authentication info for cloud account), source (location for data files), and destinatin (location for output files generated and failure information details). |
object This inline data source object gets returned as part of BatchState | |
outputTypes required | Array of strings (OutputType) Items Enum: "PDF" "PRINT" It contains details of the output formats requested for generation. PDF, representing PDF format; and PRINT representing all non-PDF formats e.g. PCL, PostScript etc. |
template required | string The template defines appearance and behavior of the PDF document. The API supports templates of format - XDP and PDF document. You can specify a reference path of your Adobe Experience Manager Repository. |
xci | string The service uses an XCI configuration file to configure various properties of the PDF document. The XCI parameter has an effect only when the template is of type XDP or an XDP-based PDF document. |
contentRoot | string Root location within an Adobe Experience Manager repository to resolve template from. |
object (PDFOutputOptions) Various options for the API | |
Array of objects (PrintedOutputOptions) It contains detailled configuration parameters which allow control over PRINT file generation. |
Responses
Request samples
- Payload
{- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
Response samples
- 400
- 401
- 408
- 409
- 500
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string"
}
Get a batch config by config name
path Parameters
configName required | string (ConfigName) config name |
Responses
Response samples
- 200
- 400
- 401
- 404
- 408
- 500
{- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
Update a batch config by config name
path Parameters
configName required | string (ConfigName) config name |
Request Body schema: application/json
configName required | string (ConfigName) |
dataSourceConfigUri required | string This is the location of data source configuration containing details of cloud config (authentication info for cloud account), source (location for data files), and destinatin (location for output files generated and failure information details). |
object This inline data source object gets returned as part of BatchState | |
outputTypes required | Array of strings (OutputType) Items Enum: "PDF" "PRINT" It contains details of the output formats requested for generation. PDF, representing PDF format; and PRINT representing all non-PDF formats e.g. PCL, PostScript etc. |
template required | string The template defines appearance and behavior of the PDF document. The API supports templates of format - XDP and PDF document. You can specify a reference path of your Adobe Experience Manager Repository. |
xci | string The service uses an XCI configuration file to configure various properties of the PDF document. The XCI parameter has an effect only when the template is of type XDP or an XDP-based PDF document. |
contentRoot | string Root location within an Adobe Experience Manager repository to resolve template from. |
object (PDFOutputOptions) Various options for the API | |
Array of objects (PrintedOutputOptions) It contains detailled configuration parameters which allow control over PRINT file generation. |
Responses
Request samples
- Payload
{- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
Response samples
- 200
- 400
- 401
- 404
- 408
- 500
{- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
Delete a batch config by config name
path Parameters
configName required | string (ConfigName) config name |
Responses
Response samples
- 200
- 400
- 401
- 404
- 408
- 500
{- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
Response samples
- 200
- 400
- 401
- 408
- 500
{- "data": [
- {
- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
]
}
Start the batch execution
path Parameters
configName required | string (ConfigName) config name |
Request Body schema: application/json
object (BatchConfig) |
Responses
Request samples
- Payload
{- "config": {
- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}
}
Response samples
- 400
- 401
- 404
- 408
- 500
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string"
}
Get batch execution details for a specific batch execution
path Parameters
configName required | string (ConfigName) config name |
executionId required | string (ExecutionId) execution identifier |
Responses
Response samples
- 200
- 400
- 401
- 404
- 408
- 500
{- "configName": "string",
- "executionId": "string",
- "config": {
- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}, - "status": "PROCESSING",
- "outputStatuses": [
- {
- "outputType": "PDF",
- "renderType": "PostScript",
- "inProgressCount": 0,
- "successCount": 0,
- "failureCount": 0
}
], - "recordsCount": 0,
- "startTime": 0,
- "endTime": 0,
- "errorInfo": {
- "code": "string",
- "message": "string"
}
}
Get state of all batch instances being executed
path Parameters
configName required | string (ConfigName) config name |
Responses
Response samples
- 200
- 400
- 401
- 404
- 408
- 500
{- "data": [
- {
- "configName": "string",
- "executionId": "string",
- "config": {
- "configName": "string",
- "dataSourceConfigUri": "string",
- "dataSource": {
- "cloudConfigPath": "string",
- "property1": "string",
- "property2": "string"
}, - "outputTypes": [
- "PDF"
], - "template": "string",
- "xci": "string",
- "contentRoot": "string",
- "pdfOutputOptions": {
- "locale": "en",
- "isTagged": false,
- "embedFonts": false,
- "linearizedPDF": false,
- "retainFormState": false,
- "retainUnsignedSignatureFields": false,
- "acrobatVersion": "Acrobat_10"
}, - "printedOutputOptionsList": [
- {
- "locale": "en",
- "copies": 1,
- "paginationOverride": "simplex",
- "printConfig": {
- "xdcUri": "hppcl5e.xdc",
- "renderType": "PostScript"
}
}
]
}, - "status": "PROCESSING",
- "outputStatuses": [
- {
- "outputType": "PDF",
- "renderType": "PostScript",
- "inProgressCount": 0,
- "successCount": 0,
- "failureCount": 0
}
], - "recordsCount": 0,
- "startTime": 0,
- "endTime": 0,
- "errorInfo": {
- "code": "string",
- "message": "string"
}
}
]
}