I have a number of forms that I need to merge with data and assemble into one XFA-based PDF.
Currently I use the following ddx:
<My Data XML>
</My Data XML>
<My Data XML2>
</My Data XML2>
This works, but obviously gives me a NON-XFA Form - I have tried taking out the <NoForms> tag but this gives me an error saying that the "baseDocument cannot be assembled because it is an XFA-based form".
What do I need to change (the xdp?, the ddx or something else?) to get out an XFA-based form from Assembler.
Thanks in advance
Did you see this?
For an XFA-based document, assembly of multiple documents is permitted only if the base document is a static XFA document and none of the other documents have XFA forms or Acrobat forms. A dynamic XFA document cannot be assembled with any other documents. If any of these conditions are violated, an exception will be thrown.
In addition to assembly, static XFA documents have the following restrictions:
• You can disassemble a static XFA document, but the result documents are not XFA documents.
• Using the PageOverlay or PageUnderlay elements throws an exception.
• Attempting to change the page size or rotation of a document or to transform the page contents throws an exception.
Perhaps this example can work for you:
<PDF result="intermediate_result.pdf" format="XDP">
<PDF source="intermediate_result.pdf" baseDocument="true"/>
This code shows how to assemble a static XFA-based PDF form with a non-interactive document