class HexaPDF:: Type:: ViewerPreferences
Parent | HexaPDF::Dictionary |
---|
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
Name | Type/Allowed Values | Required | Default Value |
---|---|---|---|
HideToolbar | TrueClass or FalseClass | false | false |
HideMenubar | TrueClass or FalseClass | false | false |
HideWindowUI | TrueClass or FalseClass | false | false |
FitWindow | TrueClass or FalseClass | false | false |
CenterWindow | TrueClass or FalseClass | false | false |
DisplayDocTitle | TrueClass or FalseClass | false | false |
NonFullScreenPageMode | Symbol One of: :UseNone, :UseOutlines, :UseThumbs, :UseOC | false | :UseNone |
Direction | Symbol One of: :L2R, :R2L | false | :L2R |
ViewArea | Symbol | false | :CropBox |
ViewClip | Symbol | false | :CropBox |
PrintArea | Symbol | false | :CropBox |
PrintClip | Symbol | false | :CropBox |
PrintScaling | Symbol | false | :AppDefault |
Duplex | Symbol One of: :Simplex, :DuplexFlipShortEdge, :DuplexFlipLongEdge | false | nil |
PickTrayByPDFSize | TrueClass or FalseClass | false | nil |
PrintPageRange | HexaPDF::PDFArray or Array | false | nil |
NumCopies | Integer | false | nil |
Enforce | HexaPDF::PDFArray or Array | false | nil |