1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! XFA (XML Forms Architecture) support.
//!
//! This module provides limited support for XFA forms in PDF documents.
//! XFA is an XML-based form specification used in some PDFs, particularly
//! government and financial forms.
//!
//! # Features
//!
//! - Parse XFA template and datasets
//! - Extract field definitions and values
//! - Analyze XFA form structure (field count, page count, field types)
//!
//! # Limitations
//!
//! This module is read-only: it parses and reports on XFA form structure,
//! it does not convert XFA to AcroForm or write PDFs.
//!
//! # Example
//!
//! ```ignore
//! use xberg_native_pdf::xfa::{XfaExtractor, XfaParser};
//! use xberg_native_pdf::PdfDocument;
//!
//! let mut doc = PdfDocument::open("form.pdf")?;
//!
//! // Check if document has XFA form
//! if XfaExtractor::has_xfa(&mut doc)? {
//! // Extract and parse XFA data
//! let xfa_data = XfaExtractor::extract_xfa(&mut doc)?;
//!
//! let mut parser = XfaParser::new();
//! let form = parser.parse(&xfa_data)?;
//! println!("Parsed {} fields", form.field_count());
//! }
//! ```
pub use ;
pub use XfaExtractor;
pub use ;