XFA

Overview

XFA is a class in Aspose.PDF FOSS for .NET.

XmlNode-based accessor for the document’s XFA packets (template / datasets / config / form / xdp).

This class provides 3 methods for working with XFA objects in .NET programs. Available methods include: GetFieldTemplate, GetFieldTemplates, SetFieldImage. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Config, Datasets, FieldNames, Form, NamespaceManager, Template, and 1 more.

Properties

NameTypeAccessDescription
NamespaceManagerXmlNamespaceManagerReadNamespace manager used when navigating the XFA XML packets.
DatasetsXmlNode?ReadThe XFA Datasets node, or null when the document has no XFA datasets.
TemplateXmlNode?ReadThe XFA Template node, or null when absent.
ConfigXmlNode?ReadThe XFA Config node.
FormXmlNode?ReadThe XFA Form node.
XDPXmlDocument?ReadComposite XDP document wrapping all XFA packets, or null when no XFA is present.
FieldNamesstring[]ReadThe XFA field names enumerated from the template.

Methods

SignatureDescription
GetFieldTemplate(fieldName: string)Return the XFA template node for the named field, or null when unknown.
GetFieldTemplates()Return every XFA template field node.
SetFieldImage(fieldName: string, image: System.IO.Stream)Set the bytes of an XFA image field.

See Also