Pdf/Element.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id$  

\Zend_Pdf_Element

Package: Zend_Pdf
PDF file element implementation
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  TYPE_BOOL = 1
>VConstant  TYPE_NUMERIC = 2
>VConstant  TYPE_STRING = 3
>VConstant  TYPE_NAME = 4
>VConstant  TYPE_ARRAY = 5
>VConstant  TYPE_DICTIONARY = 6
>VConstant  TYPE_STREAM = 7
>VConstant  TYPE_NULL = 11
>VConstant  CLONE_MODE_SKIP_PAGES = 1
>VConstant  CLONE_MODE_FORCE_CLONING = 2

Properties

>VPropertyprivate\Zend_Pdf_Element_Object $_parentObject = null
Reference to the top level indirect object, which contains this element.
Default valuenullDetails
Type
\Zend_Pdf_Element_Object

Methods

methodpubliccleanUp() : void

Clean up resources, used by object

methodpublicgetParentObject() : \Zend_Pdf_Element_Object

Get top level parent indirect object.

Returns
TypeDescription
\Zend_Pdf_Element_Object
methodpublicgetType() : integer
abstract

Return type of the element.

See ZPdfPDFConst for possible values
Returns
TypeDescription
integer
methodpublicmakeClone(\Zend_Pdf_ElementFactory $factory,  $processed, integer $mode) : void

Detach PDF object from the factory (if applicable), clone it and attach to new factory.

Parameters
NameTypeDescription
$factory\Zend_Pdf_ElementFactory

The factory to attach

$processed
$modeinteger

Cloning mode (defines filter for objects cloning)

Details
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)  
methodpublicphpToPdf(mixed $input) : \Zend_Pdf_Element
static

Convert PHP value into PDF element.

Parameters
NameTypeDescription
$inputmixed
Returns
TypeDescription
\Zend_Pdf_Element
methodpublicsetParentObject(\Zend_Pdf_Element_Object $parent) : void

Set top level parent indirect object.

Parameters
NameTypeDescription
$parent\Zend_Pdf_Element_Object
methodpublictoPhp() : mixed

Convert PDF element to PHP type.

Returns
TypeDescription
mixed
methodpublictoString(\Zend_Pdf_Factory $factory = null) : string
abstract

Convert element to a string, which can be directly written to a PDF file.

$factory parameter defines operation context.
Parameters
NameTypeDescription
$factory\Zend_Pdf_Factory
Returns
TypeDescription
string
methodpublictouch() : void

Mark object as modified, to include it into new PDF file segment.

We don't automate this action to keep control on PDF update process. All new objects are treated as "modified" automatically.
Documentation was generated by phpDocumentor 2.2.0 .