Pdf/Element.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Version
- $Id: Element.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Element
- Children
- \Zend_Pdf_Element_Array
- \Zend_Pdf_Element_Null
- \Zend_Pdf_Element_Name
- \Zend_Pdf_Element_String
- \Zend_Pdf_Element_Object
- \Zend_Pdf_Element_Numeric
- \Zend_Pdf_Element_Boolean
- \Zend_Pdf_Element_Dictionary
- \Zend_Pdf_Element_Reference
- \Zend_Pdf_Element_Stream
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods

getParentObject() : \Zend_Pdf_Element_ObjectGet top level parent indirect object.
| Type | Description |
|---|---|
| \Zend_Pdf_Element_Object |

getType() : integerReturn type of the element.
See ZPdfPDFConst for possible values
| Type | Description |
|---|---|
| integer |

makeClone(\Zend_Pdf_ElementFactory $factory, array $processed, integer $mode) : voidDetach PDF object from the factory (if applicable), clone it and attach to new factory.
| Name | Type | Description |
|---|---|---|
| $factory | \Zend_Pdf_ElementFactory | The factory to attach |
| $processed | array | &$processed List of already processed indirect objects, used to avoid objects duplication |
| $mode | integer | Cloning mode (defines filter for objects cloning) |
- Returns
- Zend_Pdf_Element
- Todo
- It's nevessry to check if SplObjectStorage class works faster (Needs PHP 5.3.x to attach object _with_ additional data to storage)

phpToPdf(mixed $input) : \Zend_Pdf_ElementConvert PHP value into PDF element.
| Name | Type | Description |
|---|---|---|
| $input | mixed |
| Type | Description |
|---|---|
| \Zend_Pdf_Element |

setParentObject(\Zend_Pdf_Element_Object $parent) : voidSet top level parent indirect object.
| Name | Type | Description |
|---|---|---|
| $parent | \Zend_Pdf_Element_Object |

toString(\Zend_Pdf_Factory $factory = null) : stringConvert element to a string, which can be directly written to a PDF file.
$factory parameter defines operation context.
| Name | Type | Description |
|---|---|---|
| $factory | \Zend_Pdf_Factory |
| Type | Description |
|---|---|
| string |