Skip to main content

Crate zpdf

Crate zpdf 

Source

Re-exports§

pub use zpdf_display_list as display_list;

Modules§

cpu

Structs§

AcroForm
The document’s interactive form.
Annotation
ContentInterpreter
Interprets a PDF content stream and produces a DisplayList.
DecodedImage
DisplayList
FontCache
Cache of loaded fonts, keyed by FontId.
FormField
A terminal interactive-form field.
IccCache
Per-document cache of ICCBased profile streams → compiled transforms, keyed by the profile stream’s object id AND the rendering intent (the same profile may be requested under different intents on one page). Failures are cached as None so a malformed profile is parsed (and warned about) once.
IccTransform
A compiled ICC-profile → sRGB transform for 1/3/4-component input.
ImageCache
Matrix
3x2 affine transformation matrix.
ObjectId
Indirect object identifier: (object number, generation number).
OcConfig
The document’s default optional-content configuration (/OCProperties /D).
ParseLimits
Security limits for PDF parsing. PDF is an untrusted input format.
PdfDict
PDF dictionary: ordered map of Name → PdfObject.
PdfDocument
PdfFile
PdfName
PDF Name object (e.g., /Type stored as "Type").
PdfPage
PdfStream
PDF stream object: dictionary + raw byte range (lazy decode).
PdfString
PDF string (literal or hexadecimal).
Point
Rect
PDF rectangle: [x0, y0, x1, y1] (lower-left, upper-right).
ResourceDict
TextSpan

Enums§

Error
FieldKind
The four AcroForm field types (/FT), plus an Unknown catch-all.
FieldValue
A resolved field value (/V).
PdfObject
All PDF object types.

Traits§

RenderBackend
Backend-agnostic render trait.

Functions§

spans_to_text
Reconstruct plain text from extracted spans, recovering reading order.

Type Aliases§

Result