Operation: Set Fields
The Set Fields
operation sets form field values in the output PDF document. Form fields are converted to text in the output PDF document and are no longer editable if the flatten="true"
attribute has been declared.
Input
For Operation Set Fields
the adapter expects an adapter-specific XML document which defines the absolute path to the associated PDF form in <Document>
element and the form field data to be set in any number of <Field>
elements. With attribute flatten="true"
the form fields are converted to flat text in the generated PDF document, with flatten="false"
the form fields remain editable.
<?xml version="1.0" encoding="UTF-8"?>
<Input>
<Document flatten="true">X4DB/1/Proect/Resources/FormDocument.pdf</Document>
<Field name="Firma">SoftProject GmbH</Field>
<Field name="KDNr">123567234</Field>
<Field name="Ort">Ettlingen</Field>
<Field name="PLZ">76275</Field>
<Field name="Strasse">Am Erlengraben 3</Field>
</Input>
Output
The output is a copy of the PDF form document referenced in the input with flat text. The text cannot be edited because flatten="true"
was defined in the input.