Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
PDF Page
SIZE_LETTER_LANDSCAPE
= '792:612:'
Size representing a US Letter page in landscape (wide) orientation.

boolean
$_attached= ''
Flag which signals, that page is created separately from any PDF document or attached to anyone.

\Zend_Pdf_Element_Reference|\Zend_Pdf_Element_Object
$_dictionary= ''
Page dictionary (refers to an inderect Zend_Pdf_Element_Dictionary object).

__clone(
)
:
void
Clone page, extract it and dependent objects from the current document, so it can be used within other docs.

__construct(
mixed $param1, mixed $param2
=
null, mixed $param3
=
null
)
:
void
Object constructor.
Constructor signatures:
new Zend_Pdf_Page(Zend_Pdf_Element_Dictionary $pageDict,
Name | Type | Description |
---|---|---|
$param1 | mixed | |
$param2 | mixed | |
$param3 | mixed |
Exception | Description |
---|---|
\Zend_Pdf_Exception |

_addProcSet(
string $procSetName
)
:
void
Add procedureSet to the Page description
Name | Type | Description |
---|---|---|
$procSetName | string |

_attachResource(
string $type, \Zend_Pdf_Resource $resource
)
:
string
Attach resource to the canvas
Method returns a name of the resource which can be used as a resource reference within drawing instructions stream Allowed types: 'ExtGState', 'ColorSpace', 'Pattern', 'Shading', 'XObject', 'Font', 'Properties'
Name | Type | Description |
---|---|---|
$type | string | |
$resource | \Zend_Pdf_Resource |
Type | Description |
---|---|
string |

attachAnnotation(
\Zend_Pdf_Annotation $annotation
)
:
\Zend_Pdf_Page
Name | Type | Description |
---|---|---|
$annotation | \Zend_Pdf_Annotation |
Type | Description |
---|---|
\Zend_Pdf_Page |

extractFont(
$fontName
)
:
\Zend_Pdf_Resource_Font_Extracted|null
Extract font attached to the page by specific font name
$fontName should be specified in UTF-8 encoding
Name | Type | Description |
---|---|---|
$fontName |
Type | Description |
---|---|
\Zend_Pdf_Resource_Font_Extracted|null |
Exception | Description |
---|---|
\Zend_Pdf_Exception |

extractFonts(
)
:
array
Extract fonts attached to the page
returns array of Zend_Pdf_Resource_Font_Extracted objects
Type | Description |
---|---|
array |
Exception | Description |
---|---|
\Zend_Pdf_Exception |

flush(
)
:
void
Dump current drawing instructions into the content stream.
Exception | Description |
---|---|
\Zend_Pdf_Exception |

render(
\Zend_Pdf_ElementFactory_Interface $objFactory
)
:
void
Prepare page to be rendered into PDF.
Name | Type | Description |
---|---|---|
$objFactory | \Zend_Pdf_ElementFactory_Interface |
Exception | Description |
---|---|
\Zend_Pdf_Exception |