Skip to main content
Skip table of contents

XFDF examples

XFDF (XML Forms Data Format) is an XML-based file format for representing form data and annotations in PDFs. It stores information usable by a PDF file, like the values in a document’s form fields.

The following examples show how to use the XFDF functionality in iText Core to create and fill forms:

createxfdf

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/CreateXfdf.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/acroforms/CreateXfdf.cs##

fillformxfdf

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/FillFormXfdf.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/acroforms/FillFormXfdf.cs##

fillformlistxfdf

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/FillFormListXfdf.java##

We've encountered an issue exporting this macro. Please try exporting again later.


JavaScript errors detected

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

If this problem persists, please contact our support.