The following exception occurs when you use FormDataIntegration to merge xml data into a prerendered PDF file:
com.adobe.livecycle.formdataintegration.client.ImportFormDataException: ALC-FDI-001-305: Operation aborted: Malformed input PDF or data.
When a PDF form contains a rich-text enabled field with data (default or already merged), the FormDataIntegrationClient can’t import the data. This issue has been identified as a limitation in the AFML library as it presently does not support the tab-interval style attribute.
In the current LiveCycle ES2 documentation, it states that the FormDataIntegrationClient is the preferred way to import data to a PDF form:
Adobe Engineering confirms that the Forms service using renderPDFForm is the recommended way to import data, rather than using the FormDataIntegrationClient. Adobe plans to update the documentation to reflect this information.
Do one of the following:
- Place the text in rich-text fields that do not have the tab-interval style attribute.
- Use the renderPDFForm API from Forms ES2 by setting “Generate Server Appearances” to false.