API Documentation

Pdf/Outline/Loaded.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 license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  
subpackage
Actions  
version
$Id: Loaded.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Pdf_Outline_Loaded

Traceable PDF outline representation class

Instances of this class trace object update uperations. That allows to avoid outlines PDF tree update which should be performed at each document update otherwise.

Extends from
\Zend_Pdf_Outline
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  
subpackage
Outlines  

Properties

Propertyprotectedarray  $_originalChildOutlines= 'array'

original array of child outlines

Default valuearrayDetails
Type
array
Propertyprotected\Zend_Pdf_Element_Dictionary|\Zend_Pdf_Element_Object|\Zend_Pdf_Element_Reference  $_outlineDictionary= ''

Outline dictionary object

Methods

methodpubliccount( ) : int

count()

Inherited from: \Zend_Pdf_Outline::count()
Returns
Type Description
int
methodpubliccreate(  $param1,  $param2 = null ) : \Zend_Pdf_Outline
static

Create new Outline object

Inherited from: \Zend_Pdf_Outline::create()

It provides two forms of input parameters:

  1. Zend_Pdf_Outline::create(string $title[, Zend_Pdf_Target $target])
  2. Zend_Pdf_Outline::create(array $options)

Second form allows to provide outline options as an array. The followed options are supported: 'title' - string, outline title, required 'open' - boolean, true if outline entry is open (default value is false) 'color' - Zend_Pdf_Color_Rgb object, true if outline entry is open (default value is null - black) 'italic' - boolean, true if outline entry is displayed in italic (default value is false) 'bold' - boolean, true if outline entry is displayed in bold (default value is false) 'target' - Zend_Pdf_Target object or string, outline item destination

Parameters
Name Type Description
$param1
$param2
Returns
Type Description
\Zend_Pdf_Outline
Throws
Exception Description
\Zend_Pdf_Exception
methodpubliccurrent( ) : \Zend_Pdf_Outline

Returns the child outline.

Inherited from: \Zend_Pdf_Outline::current()
Returns
Type Description
\Zend_Pdf_Outline
methodpublicdump(  $level = 0 ) : void

Parameters
Name Type Description
$level
methodpublicgetChildren( ) : \Zend_Pdf_Outline|null

Returns the child outline.

Inherited from: \Zend_Pdf_Outline::getChildren()
Returns
Type Description
\Zend_Pdf_Outlinenull
methodpublicgetColor( ) : \Zend_Pdf_Color_Rgb

Get outline text color.

Returns
Type Description
\Zend_Pdf_Color_Rgb
methodpublicgetOptions( ) : array

Get outline options

Inherited from: \Zend_Pdf_Outline::getOptions()
Returns
Type Description
array
methodpublicgetTarget( ) : \Zend_Pdf_Target

Get outline target.

Returns
Type Description
\Zend_Pdf_Target
Throws
Exception Description
\Zend_Pdf_Exception
methodpublicgetTitle( ) : string

Get outline title.

Returns
Type Description
string
Throws
Exception Description
\Zend_Pdf_Exception
methodpublichasChildren( ) : bool

Implements RecursiveIterator interface.

Inherited from: \Zend_Pdf_Outline::hasChildren()
Returns
Type Description
bool whether container has any pages
methodpublicisBold( ) : boolean

Returns true if outline item is displayed in bold

Returns
Type Description
boolean
methodpublicisItalic( ) : boolean

Returns true if outline item is displayed in italic

Returns
Type Description
boolean
methodpublicisOpen( ) : boolean

Returns true if outline item is open by default

Inherited from: \Zend_Pdf_Outline::isOpen()
Returns
Type Description
boolean
methodpublickey( ) : integer

Returns current iterator key

Inherited from: \Zend_Pdf_Outline::key()
Returns
Type Description
integer
methodpublicnext( ) : void

Go to next child

Inherited from: \Zend_Pdf_Outline::next()
methodpublicrewind( ) : void

Rewind children

Inherited from: \Zend_Pdf_Outline::rewind()
methodpublicsetColor( \Zend_Pdf_Color_Rgb $color ) : \Zend_Pdf_Outline

Set outline text color.

(null means default color which is black)

Parameters
Name Type Description
$color \Zend_Pdf_Color_Rgb
Returns
Type Description
\Zend_Pdf_Outline
methodpublicsetIsBold( boolean $isBold ) : \Zend_Pdf_Outline

Sets 'isBold' outline flag

Parameters
Name Type Description
$isBold boolean
Returns
Type Description
\Zend_Pdf_Outline
methodpublicsetIsItalic( boolean $isItalic ) : \Zend_Pdf_Outline

Sets 'isItalic' outline flag

Parameters
Name Type Description
$isItalic boolean
Returns
Type Description
\Zend_Pdf_Outline
methodpublicsetIsOpen( boolean $isOpen ) : \Zend_Pdf_Outline

Sets 'isOpen' outline flag

Parameters
Name Type Description
$isOpen boolean
Returns
Type Description
\Zend_Pdf_Outline
methodpublicsetOptions( array $options ) : \Zend_Pdf_Actions_Traceable

Set outline options

Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Pdf_Actions_Traceable
Throws
Exception Description
\Zend_Pdf_Exception
methodpublicsetTarget( \Zend_Pdf_Target|string $target = null ) : \Zend_Pdf_Outline

Set outline target.

Null means no target

Parameters
Name Type Description
$target \Zend_Pdf_Target|string
Returns
Type Description
\Zend_Pdf_Outline
Throws
Exception Description
\Zend_Pdf_Exception
methodpublicsetTitle( string $title ) : \Zend_Pdf_Outline

Set outline title

Parameters
Name Type Description
$title string
Returns
Type Description
\Zend_Pdf_Outline
methodpublicvalid( ) : boolean

Check if current position is valid

Inherited from: \Zend_Pdf_Outline::valid()
Returns
Type Description
boolean
Documentation was generated by DocBlox 0.13.3.