Package-level declarations
Types
Initial page-layout hint that tells the viewer how to lay pages out in the document area (ISO 32000-1 §7.7.2 Table 28, /PageLayout).
Top-level interactive form metadata: catalog /AcroForm (ISO 32000-1 §12.7.2).
One PDF annotation (ISO 32000-1 §12.5).
One article thread from the document (ISO 32000-1 §12.4.3).
A resolved page destination (ISO 32000-1 §12.3.2). Holds the destination's target page (when we can resolve it) and the view-fit parameters.
A loaded PDF document. Construct with open.
The scripts a document runs at the moments of its own life, from the catalog's /AA dictionary (ISO 32000-1 §12.6.3, Table 197).
Contents of the trailer's /Info dictionary (ISO 32000-1 §14.3.3).
One terminal interactive-form field (ISO 32000-1 §12.7.3), flattened from the AcroForm field tree with inheritable attributes (/FT, /DA, /Ff, /V, /Q) resolved down from ancestors.
The live values of a document's form fields, while the reader has it open.
Catalog /MarkInfo dictionary (ISO 32000-1 §14.7.1).
Optional Content metadata (ISO 32000-1 §8.11). Optional Content Groups (OCGs) are the PDF spec's name for "layers": chunks of content that can be selectively shown or hidden via /OC marked-content sections and Form XObjects with /OC entries.
One node in the document outline (a.k.a. bookmarks) tree. See ISO 32000-1 §12.3.3.
A single PDF page. Obtained from PdfDocument.pages; not constructed directly.
Document usage permissions: the typed view of the Standard Security Handler's /P bit-flags (ISO 32000-1 §7.6.3.2 Table 22).
Output geometry for rasterizing a PdfPage at a given scale: how big the target surface must be, in device pixels, and the matrix that carries unscaled PDF user space onto it.
What a viewer needs from a document's scripts, without knowing how they run.
Catalog /ViewerPreferences dictionary (ISO 32000-1 §12.2).
The scripts an annotation runs when the reader touches it, from its /AA dictionary (ISO 32000-1 §12.6.3, Table 194 and Table 196).
Parsed view of an XMP (Extensible Metadata Platform) packet stored in the catalog's /Metadata stream. The XMP spec is ISO 16684-1; in PDF it's referenced from ISO 32000-1 §14.3.2 (PDF 2.0 §14.3) as the preferred way to carry document metadata. PDF 2.0 deprecates the trailer /Info dict but in practice readers consult both.
Functions
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
rasterGeometry with the library's default allocation ceiling.
The PdfRasterGeometry for rendering this page at scale device pixels per PDF user-space unit (so scale = dpi / 72.0). maxPixels prevents an untrusted page size, /UserUnit, or accidental scale from requesting an allocation large enough to terminate the host process.