class HexaPDF::Type::ViewerPreferences

Parent

Represents the PDF’s viewer preferences dictionary which defines how a document should be presented on screen or in print.

This dictionary is linked via the /ViewerPreferences entry from the Type::Catalog.

See: PDF2.0 s12.2, Catalog

Field Definitions

NameType/Allowed ValuesRequiredDefault Value
HideToolbarTrueClass or FalseClassfalsefalse
HideMenubarTrueClass or FalseClassfalsefalse
HideWindowUITrueClass or FalseClassfalsefalse
FitWindowTrueClass or FalseClassfalsefalse
CenterWindowTrueClass or FalseClassfalsefalse
DisplayDocTitleTrueClass or FalseClassfalsefalse
NonFullScreenPageModeSymbol
One of: :UseNone, :UseOutlines, :UseThumbs, :UseOC
false:UseNone
DirectionSymbol
One of: :L2R, :R2L
false:L2R
ViewAreaSymbolfalse:CropBox
ViewClipSymbolfalse:CropBox
PrintAreaSymbolfalse:CropBox
PrintClipSymbolfalse:CropBox
PrintScalingSymbolfalse:AppDefault
DuplexSymbol
One of: :Simplex, :DuplexFlipShortEdge, :DuplexFlipLongEdge
falsenil
PickTrayByPDFSizeTrueClass or FalseClassfalsenil
PrintPageRangeHexaPDF::PDFArray or Arrayfalsenil
NumCopiesIntegerfalsenil
EnforceHexaPDF::PDFArray or Arrayfalsenil