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§
- Form
Data - A JSON-friendly representation of an XFA form’s data.
- Form
Node Id - A unique identifier for a form node.
- Form
Schema - Schema metadata for a form’s fields.
- Form
Tree - The form tree: a node-based representation of the merged template+data.
- XfaField
Model - SDK-level model of one fillable XFA form field, derived from the merged form tree and the current layout.
- XfaField
Option - A selectable option of a dropdown / list field.
- XfaPackets
- XfaPackets.
- XfaRect
- Axis-aligned rectangle in page space, points, top-left origin (XFA coordinate convention: y grows downward from the top of the page).
- XfaSession
- Parse-once session over a single XFA PDF.
- XfaSet
Outcome - Outcome of a successful
XfaSession::set_valuecall. - XfaWidget
- One layouted widget occurrence of a field.
- XfaWriteback
Report - Report from a save/writeback.
Enums§
- XfaError
- XfaError.
- XfaField
Type - Public field type, mirroring
FieldKindwithout leaking the layout-engine type into the SDK surface. - XfaWrite
Value - A value to write into an XFA field.
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.
- flatten_
with_ password - Flatten an encrypted XFA document, using
passwordto open it. - form_
tree_ to_ json - Convert a FormTree into a JSON-friendly
FormDatastructure. - form_
tree_ to_ value - Convert a FormTree into a raw
serde_json::Value. - has_xfa
- Returns
trueif the document has an XFA template packet.