XFDF files
An XFDF file can be used to automatically fill electronic form fields of a document with certain values. The XFDF file contains an XML structure that contains the path of the document to be opened and the values for the individual form fields.
The XFDF file can then be opened with signoSign/2.
The following example opens the “Test.pdf” file and fills in the “e-mail” form field with the e-mail address “example@example.com”:
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<f href="Test.pdf"/>
<fields>
<field name="E-Mail">
<value>exampe@example.com</value>
</field>
</fields>
</xfdf>
It is also sufficient to specify only the file name instead of the full path if the XFDF file is located next to the document.