Skip to main content
Skip table of contents

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
<?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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.