Skip to main content

Module viewer_prefs

Module viewer_prefs 

Source
Expand description

PDF viewer preferences from the catalog’s /ViewerPreferences dict (and the catalog-level /PageLayout and /PageMode entries that travel with them).

These preferences are hints PDF viewers should honor when displaying the document — whether to hide chrome, fit the window to the first page, which page mode to open in, etc. They are advisory, not mandatory; consumers may override.

Structs§

ViewerPreferences
PDF viewer-preference hints, gathered from the catalog’s /ViewerPreferences sub-dict plus the catalog-level /PageLayout and /PageMode.

Enums§

Duplex
/Duplex — default print-duplex preference.
PageLayout
/PageLayout — how pages should be displayed.
PageMode
/PageMode — initial document presentation mode.
PrintScaling
/PrintScaling — default print-scaling preference.
ReadingDirection
/Direction — predominant reading order.

Functions§

parse_viewer_preferences
Parse /ViewerPreferences, /PageLayout, and /PageMode from the document catalog.