Properties

$index

$index : integer

PDF page object index

Type

integer

$data

$data : string

PDF object data

Type

string

$isImported

$isImported : string

Imported flag

Type

string

$parent

$parent : integer

PDF page object parent index

Type

integer

$width

$width : integer

PDF page object width

Type

integer

$height

$height : integer

PDF page object height

Type

integer

$currentContentIndex

$currentContentIndex : integer

PDF page object current content object index

Type

integer

$annots

$annots : array

PDF page object annotation object indices

Type

array

$content

$content : array

PDF page object content object indices

Type

array

$xObjects

$xObjects : array

PDF page object XObject references

Type

array

$fonts

$fonts : array

PDF page object font object references

Type

array

Methods

setImported()

setImported(boolean  $imported) : \Pop\Pdf\Build\Object\AbstractObject

Set whether the object is imported

Parameters

boolean $imported

Returns

\Pop\Pdf\Build\Object\AbstractObject

getIndex()

getIndex() : integer

Get the object index

Returns

integer

getData()

getData() : string

Get the object stream

Returns

string

isImported()

isImported() : boolean

Determine if the object is imported

Returns

boolean

getDictionaryReferences()

getDictionaryReferences(string  $dictionary) : array

Get the integer references within a dictionary stream

Parameters

string $dictionary

Returns

array

__toString()

__toString() : string

Method to print the page object.

Returns

string

__construct()

__construct(mixed  $width = 612, mixed  $height = 792, integer  $index = 4) 

Constructor

Instantiate a PDF page object, defaults to letter size.

Parameters

mixed $width
mixed $height
integer $index

parse()

parse(string  $stream) : \Pop\Pdf\Build\Object\PageObject

Parse a page object from a string

Parameters

string $stream

Returns

\Pop\Pdf\Build\Object\PageObject

setParentIndex()

setParentIndex(integer  $parent) : \Pop\Pdf\Build\Object\PageObject

Set the page object parent index

Parameters

integer $parent

Returns

\Pop\Pdf\Build\Object\PageObject

setWidth()

setWidth(float  $width) : \Pop\Pdf\Build\Object\PageObject

Set the page object width

Parameters

float $width

Returns

\Pop\Pdf\Build\Object\PageObject

setHeight()

setHeight(float  $height) : \Pop\Pdf\Build\Object\PageObject

Set the page object height

Parameters

float $height

Returns

\Pop\Pdf\Build\Object\PageObject

setAnnots()

setAnnots(array  $annots) : \Pop\Pdf\Build\Object\PageObject

Set the page object annotation indices

Parameters

array $annots

Returns

\Pop\Pdf\Build\Object\PageObject

setContent()

setContent(array  $content) : \Pop\Pdf\Build\Object\PageObject

Set the page object content object indices

Parameters

array $content

Returns

\Pop\Pdf\Build\Object\PageObject

setXObjects()

setXObjects(array  $xObjects) : \Pop\Pdf\Build\Object\PageObject

Set the page object XObject references

Parameters

array $xObjects

Returns

\Pop\Pdf\Build\Object\PageObject

setFonts()

setFonts(array  $fonts) : \Pop\Pdf\Build\Object\PageObject

Set the page object font references

Parameters

array $fonts

Returns

\Pop\Pdf\Build\Object\PageObject

setCurrentContentIndex()

setCurrentContentIndex(mixed  $i = null) : \Pop\Pdf\Build\Object\PageObject

Set the page object current content object index

Parameters

mixed $i

Returns

\Pop\Pdf\Build\Object\PageObject

addAnnotIndex()

addAnnotIndex(integer  $i) : \Pop\Pdf\Build\Object\PageObject

Add annotation index

Parameters

integer $i

Returns

\Pop\Pdf\Build\Object\PageObject

addContentIndex()

addContentIndex(integer  $i) : \Pop\Pdf\Build\Object\PageObject

Add content object index

Parameters

integer $i

Returns

\Pop\Pdf\Build\Object\PageObject

addXObjectReference()

addXObjectReference(string  $xObject) : \Pop\Pdf\Build\Object\PageObject

Add XObject reference

Parameters

string $xObject

Returns

\Pop\Pdf\Build\Object\PageObject

addFontReference()

addFontReference(string  $font) : \Pop\Pdf\Build\Object\PageObject

Add font reference

Parameters

string $font

Returns

\Pop\Pdf\Build\Object\PageObject

getParentIndex()

getParentIndex() : integer

Get the page object parent index

Returns

integer

getWidth()

getWidth() : float

Get the page object width

Returns

float

getHeight()

getHeight() : float

Get the page object height

Returns

float

getCurrentContentIndex()

getCurrentContentIndex() : integer

Get the page object current content object index

Returns

integer

getAnnots()

getAnnots() : array

Get the page object annotation indices

Returns

array

getContent()

getContent() : array

Get the page object content object indices

Returns

array

getXObjects()

getXObjects() : array

Get the page object XObject references

Returns

array

getFonts()

getFonts() : array

Get the page object font references

Returns

array

hasAnnot()

hasAnnot(integer  $i) : boolean

Determine if the page object has an annotation index

Parameters

integer $i

Returns

boolean

hasContent()

hasContent(integer  $i) : boolean

Determine if the page object has a content index

Parameters

integer $i

Returns

boolean