ViewerPreferences
extends PdfObject
in package
PDF Viewer Preferences dictionary.
Controls how the PDF viewer displays the document.
Table of Contents
Properties
- $centerWindow : bool|null
- $direction : PdfName|null
- $displayDocTitle : bool|null
- $duplex : PdfName|null
- $enforce : PdfArray|null
- $fitWindow : bool|null
- $generationNumber : int
- $hideMenubar : bool|null
- $hideToolbar : bool|null
- $hideWindowUI : bool|null
- $nonFullScreenPageMode : PdfName|null
- $numCopies : int|null
- $objectNumber : int
- $pickTrayByPDFSize : bool|null
- $printArea : PdfName|null
- $printClip : PdfName|null
- $printPageRange : PdfArray|null
- $printScaling : PdfName|null
- $viewArea : PdfName|null
- $viewClip : PdfName|null
Methods
- toIndirectObject() : string
- Wrap the object in an indirect object structure: X Y obj ... endobj
- toPdf() : string
- Serialize the object's dictionary/value to PDF syntax.
Properties
$centerWindow
public
bool|null
$centerWindow
= null
$direction
public
PdfName|null
$direction
= null
$displayDocTitle
public
bool|null
$displayDocTitle
= null
$duplex
public
PdfName|null
$duplex
= null
$enforce
public
PdfArray|null
$enforce
= null
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V2_0
$fitWindow
public
bool|null
$fitWindow
= null
$generationNumber
public
int
$generationNumber
= 0
$hideMenubar
public
bool|null
$hideMenubar
= null
$hideToolbar
public
bool|null
$hideToolbar
= null
$hideWindowUI
public
bool|null
$hideWindowUI
= null
$nonFullScreenPageMode
public
PdfName|null
$nonFullScreenPageMode
= null
$numCopies
public
int|null
$numCopies
= null
$objectNumber
public
int
$objectNumber
= 0
$pickTrayByPDFSize
public
bool|null
$pickTrayByPDFSize
= null
$printArea
public
PdfName|null
$printArea
= null
$printClip
public
PdfName|null
$printClip
= null
$printPageRange
public
PdfArray|null
$printPageRange
= null
$printScaling
public
PdfName|null
$printScaling
= null
$viewArea
public
PdfName|null
$viewArea
= null
$viewClip
public
PdfName|null
$viewClip
= null
Methods
toIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string