Pdf/Element/Object/Stream.php
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 [email protected] 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: Stream.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Element_Object_Stream
PDF file 'stream object' element implementation
- Parent(s)
- \Zend_Pdf_Element_Object < \Zend_Pdf_Element
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
TYPE_BOOL
= 1
- Inherited_from
- \Zend_Pdf_Element::TYPE_BOOL
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_BOOL
TYPE_NUMERIC
= 2
- Inherited_from
- \Zend_Pdf_Element::TYPE_NUMERIC
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_NUMERIC
TYPE_STRING
= 3
- Inherited_from
- \Zend_Pdf_Element::TYPE_STRING
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_STRING
TYPE_NAME
= 4
- Inherited_from
- \Zend_Pdf_Element::TYPE_NAME
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_NAME
TYPE_ARRAY
= 5
- Inherited_from
- \Zend_Pdf_Element::TYPE_ARRAY
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_ARRAY
TYPE_DICTIONARY
= 6- Inherited_from
- \Zend_Pdf_Element::TYPE_DICTIONARY
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_DICTIONARY
TYPE_STREAM
= 7
- Inherited_from
- \Zend_Pdf_Element::TYPE_STREAM
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_STREAM
TYPE_NULL
= 11
- Inherited_from
- \Zend_Pdf_Element::TYPE_NULL
- Inherited_from
- \Zend_Pdf_Element_Object::TYPE_NULL
CLONE_MODE_SKIP_PAGES
= 1- Inherited_from
- \Zend_Pdf_Element::CLONE_MODE_SKIP_PAGES
- Inherited_from
- \Zend_Pdf_Element_Object::CLONE_MODE_SKIP_PAGES
CLONE_MODE_FORCE_CLONING
= 2- Inherited_from
- \Zend_Pdf_Element::CLONE_MODE_FORCE_CLONING
- Inherited_from
- \Zend_Pdf_Element_Object::CLONE_MODE_FORCE_CLONING
Properties

\Zend_Pdf_ElementFactory $_factory =
- Type
- \Zend_Pdf_ElementFactory
- Inherited_from
- \Zend_Pdf_Element_Object::$$_factory

array|null $_initialDictionaryData = nullStored original stream object dictionary.
Used to decode stream at access time.
The only properties affecting decoding are sored here.
nullDetails- Type
- array | null

\Zend_Pdf_Element_Object $_parentObject = nullReference to the top level indirect object, which contains this element.
Inherited from: \Zend_Pdf_Element::$$_parentObject\Zend_Pdf_Element_Object::$$_parentObjectnullDetails- Type
- \Zend_Pdf_Element_Object
- Inherited_from
- \Zend_Pdf_Element::$$_parentObject
- Inherited_from
- \Zend_Pdf_Element_Object::$$_parentObject

\Zend_Pdf_Element $_value =
- Type
- \Zend_Pdf_Element
- Inherited_from
- \Zend_Pdf_Element_Object::$$_value
Methods

__call(string $method, array $args) : mixedCall handler
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| mixed |

__construct(mixed $val, integer $objNum, integer $genNum, \Zend_Pdf_ElementFactory $factory, \Zend_Pdf_Element_Dictionary | null $dictionary = null) : voidObject constructor
| Name | Type | Description |
|---|---|---|
| $val | mixed | |
| $objNum | integer | |
| $genNum | integer | |
| $factory | \Zend_Pdf_ElementFactory | |
| $dictionary | \Zend_Pdf_Element_Dictionary | null |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

__get(string $property) : mixedGet handler
| Name | Type | Description |
|---|---|---|
| $property | string |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

__set(string $property, mixed $value) : voidSet handler
| Name | Type | Description |
|---|---|---|
| $property | string | |
| $value | mixed |

_extractDictionaryData() : arrayExtract dictionary data which are used to store information and to normalize filters information before defiltering.
| Type | Description |
|---|---|
| array |

dump(\Zend_Pdf_ElementFactory $factory) : stringDump object to a string to save within PDF file
$factory parameter defines operation context.
| Name | Type | Description |
|---|---|---|
| $factory | \Zend_Pdf_ElementFactory |
| Type | Description |
|---|---|
| string |

getFactory() : \Zend_Pdf_ElementFactoryCheck, that object is generated by specified factory
Inherited from: \Zend_Pdf_Element_Object::getFactory()| Type | Description |
|---|---|
| \Zend_Pdf_ElementFactory |

getObject() : \Zend_Pdf_Element_ObjectReturn object, which can be used to identify object and its references identity
Inherited from: \Zend_Pdf_Element_Object::getObject()| Type | Description |
|---|---|
| \Zend_Pdf_Element_Object |

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

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

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

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

toString(\Zend_Pdf_Factory $factory = null) : string
$factory parameter defines operation context.
| Name | Type | Description |
|---|---|---|
| $factory | \Zend_Pdf_Factory |
| Type | Description |
|---|---|
| string |

touch() : voidMark object as modified, to include it into new PDF file segment
Inherited from: \Zend_Pdf_Element_Object::touch()We don't automate this action to keep control on PDF update process. All new objects are treated as "modified" automatically.