API Reference

PDFluent SDK modules

The PDFluent SDK is organized into focused modules. Below is a summary of each module and its purpose. Full generated API docs are published to docs.rs at release.

Full API docs available on docs.rs after release

Document

pdfluent::document

Core PDF document type. Open, create, save, and inspect PDFs. Entry point for most SDK operations.

Page

pdfluent::page

Page-level operations: dimensions, rotation, content streams, annotations, and page tree manipulation.

Form

pdfluent::form

Unified form interface for both AcroForm and XFA-based PDFs. Enumerate fields, read values, fill forms.

AcroForm

pdfluent::form::acroform

AcroForm-specific API. Text fields, checkboxes, radio buttons, dropdowns, and signature fields.

XfaForm

pdfluent::form::xfa

XFA (XML Forms Architecture) engine. Parse, evaluate FormCalc scripts, fill fields, flatten to standard PDF.

Renderer

pdfluent::renderer

Render PDF pages to raster images (PNG, JPEG). Configurable DPI and color space. Tested against a 20K PDF corpus.

Encryption

pdfluent::encryption

AES-256 encryption and decryption. Set user and owner passwords, control permission flags per the PDF spec.

Compliance

pdfluent::compliance

PDF/A-1b, PDF/A-2b, PDF/A-3b, and PDF/UA-1 validation and conversion. Returns structured validation reports.

Merger

pdfluent::merger

Merge multiple PDF documents into one. Preserves bookmarks, annotations, and form fields.

Splitter

pdfluent::splitter

Split a PDF by page range, by bookmark, or into individual pages. Outputs independent Document instances.

Full API documentation

Every public type, method, and trait is documented inline and published automatically via cargo doc. After release, the complete API reference will be available on docs.rs. Until then, request early access docs via email.