Skip to main content

Crate pdf_xfa

Crate pdf_xfa 

Source
Expand description

XFA engine — extraction, layout rendering, font resolution.

Re-exports§

pub use classify::detect_xfa_type;
pub use classify::detect_xfa_type_from_packets;
pub use classify::XfaType;
pub use dynamic::DynamicScriptOutcome;
pub use dynamic::JsExecutionMode;
pub use dynamic::OutputQuality;
pub use extract::validate_xfa_packets;
pub use extract::PacketValidation;
pub use flatten::compare_flatten_quality;
pub use flatten::flatten_xfa_to_pdf;
pub use flatten::flatten_xfa_to_pdf_with_layout_dump;
pub use flatten::flatten_xfa_to_pdf_with_layout_dump_and_metadata;
pub use flatten::flatten_xfa_to_pdf_with_metadata;
pub use flatten::is_pdf_encrypted;
pub use flatten::validate_flattened_pdf;
pub use flatten::validate_text_completeness;
pub use flatten::FlattenMetadata;
pub use flatten::FlattenQualityMetrics;
pub use flatten::FlattenValidation;
pub use flatten::LayoutDump;
pub use flatten::LayoutDumpEntry;
pub use flatten::TextValidation;
pub use js_runtime::activity_allowed_for_sandbox;
pub use js_runtime::HostBindings;
pub use js_runtime::MutationLogEntry;
pub use js_runtime::NullRuntime;
pub use js_runtime::RuntimeMetadata;
pub use js_runtime::RuntimeOutcome;
pub use js_runtime::SandboxError;
pub use js_runtime::XfaJsRuntime;
pub use js_runtime::DEFAULT_MEMORY_BUDGET_BYTES;
pub use js_runtime::DEFAULT_TIME_BUDGET_MS;
pub use js_runtime::MAX_INSTANCES_PER_SUBFORM;
pub use js_runtime::MAX_MUTATIONS_PER_DOC;
pub use js_runtime::MAX_RESOLVE_CALLS_PER_SCRIPT;
pub use js_runtime::MAX_RESOLVE_RESULTS;
pub use js_runtime::MAX_SCRIPT_BODY_BYTES;
pub use js_runtime::MAX_SOM_DEPTH;
pub use js_runtime::SANDBOX_ACTIVITY_ALLOWLIST;
pub use formcalc_interpreter as formcalc;
pub use xfa_dom_resolver as dom_resolver;
pub use xfa_json as json;
pub use xfa_layout_engine as layout;

Modules§

adobe_compat
Adobe compatibility rule metadata registry. Adobe compatibility rule metadata + executable rule decisions.
appearance_bridge
FormCalc results -> PDF appearance streams.
classify
XFA form type classification — static vs dynamic vs none.
dynamic
dynamic.
error
Error types for the XFA engine.
extract
XFA packet extraction from PDF via pdf-syntax.
flatten
XFA Flattening Pipeline
font_bridge
Font Resolution Pipeline
image_bridge
Image embedding for PDF XObjects.
javascript_policy
Central JavaScript handling policy for PDF/XFA hardening paths.
js_runtime
M3-B Phase B — JavaScript runtime adapter (skeleton).
merger
XFA Form DOM — the merged result of template + data.
paint_bridge
Abstract paint commands for XFA layout rendering.
render_bridge
XFA layout output to PDF content stream overlay generation.
template_parser
XDP template XML → FormTree parser.