Click or drag to resize
Pdf Library for .NET

PdfFormXfaMode Enumeration

How PdfFormManager treats a form defined in XFA (XML Forms Architecture): a form that lays itself out (a dynamic XFA form, whose fields exist only in its XFA template), or a hybrid form (XFA beside AcroForm fields on the document's own pages).

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public enum PdfFormXfaMode
Members
Member nameValueDescription
Auto0 A form that lays itself out is filled as XFA; a hybrid form is filled through its AcroForm fields and saved without its XFA (the default).
Xfa1 Every XFA form is filled as XFA. A form that lays itself out is filled as in Auto; a hybrid form is filled through its AcroForm fields and saved with its XFA kept and holding the same values, so a viewer that shows the XFA shows them.
AcroForm2 The XFA is ignored: only AcroForm fields are filled. A form that lays itself out then has no fields, and a hybrid form is saved without its XFA.
Example
PdfFormManager manager = new PdfFormManager();
manager.XfaMode = PdfFormXfaMode.Xfa;
manager.Load("hybrid-form.pdf");
See Also