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§
- Viewer
Preferences - PDF viewer-preference hints, gathered from the catalog’s
/ViewerPreferencessub-dict plus the catalog-level/PageLayoutand/PageMode.
Enums§
- Duplex
/Duplex— default print-duplex preference.- Page
Layout /PageLayout— how pages should be displayed.- Page
Mode /PageMode— initial document presentation mode.- Print
Scaling /PrintScaling— default print-scaling preference.- Reading
Direction /Direction— predominant reading order.
Functions§
- parse_
viewer_ preferences - Parse
/ViewerPreferences,/PageLayout, and/PageModefrom the document catalog.