Skip to main content

Module xfa

Module xfa 

Source
Expand description

XFA feature surface for pdf-engine.

This module is compiled only with the xfa feature and re-exports the high-level helpers needed to extract and flatten XFA content without making the base crate depend on the XFA stack by default.

Structs§

FormData
A JSON-friendly representation of an XFA form’s data.
FormNodeId
A unique identifier for a form node.
FormSchema
Schema metadata for a form’s fields.
FormTree
The form tree: a node-based representation of the merged template+data.
XfaPackets
XfaPackets.

Enums§

XfaError
XfaError.

Functions§

export_schema
Extract a schema from a FormTree.
extract_packets
Extract the XFA packets embedded in a document.
flatten
Flatten an XFA document into static PDF bytes.
form_tree_to_json
Convert a FormTree into a JSON-friendly FormData structure.
form_tree_to_value
Convert a FormTree into a raw serde_json::Value.
has_xfa
Returns true if the document has an XFA template packet.