Skip to main content

Module page_boxes

Module page_boxes 

Source
Expand description

Per-page geometry: the five PDF page boxes plus rotation, user unit, and presentation hints.

PageBoxes exposes PageInfo’s already-resolved MediaBox and CropBox plus the page-only BleedBox, TrimBox, ArtBox, UserUnit, Dur, Trans, and AA entries.

Per ISO 32000-2 §14.8.2, MediaBox and CropBox are inheritable from the page tree; the bleed, trim, and art boxes are page-local. parse_page_boxes reads PageInfo for the inheritable fields and re-resolves the page dict for the page-local entries.

Structs§

PageBoxes
Page geometry and presentation hints, drawn from the page dict plus the inherited MediaBox/CropBox already resolved on PageInfo.

Functions§

parse_page_boxes
Read the page-box and presentation-hint entries for a page.