Pdf/Outline/Created.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
- Subpackage
- Actions
- Version
- $Id: Created.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Outline_Created
PDF outline representation class
- Parent(s)
- \Zend_Pdf_Outline
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Todo
- Implement an ability to associate an outline item with a structure element (PDF 1.3 feature)
Properties

boolean $_bold = falseTrue if outline item is displayed in bold.
Default value is false.
falseDetails- Type
- boolean

\Zend_Pdf_Color_Rgb $_color = nullColor to be used for the outline entry’s text.
It uses the DeviceRGB color space for color representation. Null means default value - black ([0.0 0.0 0.0] in RGB representation).
nullDetails- Type
- \Zend_Pdf_Color_Rgb

boolean $_italic = falseTrue if outline item is displayed in italic.
Default value is false.
falseDetails- Type
- boolean

boolean $_open = false
falseDetails- Type
- boolean
- Inherited_from
- \Zend_Pdf_Outline::$$_open

\Zend_Pdf_Destination|\Zend_Pdf_Action $_target = nullTarget destination or action.
String means named destination
Null means no target.
nullDetails

array $childOutlines = array()Array of child outlines (array of Zend_Pdf_Outline objects)
Inherited from: \Zend_Pdf_Outline::$$childOutlinesarray()Details- Type
- array
- Inherited_from
- \Zend_Pdf_Outline::$$childOutlines
Methods

__construct(array $options = array()) : voidObject constructor
| Name | Type | Description |
|---|---|---|
| $options | array |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

create( $param1, $param2 = null) : \Zend_Pdf_Outline
It provides two forms of input parameters:
- Zend_Pdf_Outline::create(string $title[, Zend_Pdf_Target $target])
- 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
| Name | Type | Description |
|---|---|---|
| $param1 | ||
| $param2 |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

getColor() : \Zend_Pdf_Color_RgbGet outline text color.
| Type | Description |
|---|---|
| \Zend_Pdf_Color_Rgb |

isBold() : booleanReturns true if outline item is displayed in bold
| Type | Description |
|---|---|
| boolean |

isItalic() : booleanReturns true if outline item is displayed in italic
| Type | Description |
|---|---|
| boolean |

isOpen() : booleanReturns true if outline item is open by default
Inherited from: \Zend_Pdf_Outline::isOpen()| Type | Description |
|---|---|
| boolean |

setColor(\Zend_Pdf_Color_Rgb $color) : \Zend_Pdf_OutlineSet outline text color.
(null means default color which is black)
| Name | Type | Description |
|---|---|---|
| $color | \Zend_Pdf_Color_Rgb |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |

setIsBold(boolean $isBold) : \Zend_Pdf_OutlineSets 'isBold' outline flag
| Name | Type | Description |
|---|---|---|
| $isBold | boolean |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |

setIsItalic(boolean $isItalic) : \Zend_Pdf_OutlineSets 'isItalic' outline flag
| Name | Type | Description |
|---|---|---|
| $isItalic | boolean |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |

setIsOpen(boolean $isOpen) : \Zend_Pdf_Outline
| Name | Type | Description |
|---|---|---|
| $isOpen | boolean |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |

setOptions(array $options) : \Zend_Pdf_Action
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Pdf_Action |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

setTarget(\Zend_Pdf_Target | string $target = null) : \Zend_Pdf_OutlineSet outline target.
Null means no target
| Name | Type | Description |
|---|---|---|
| $target | \Zend_Pdf_Target | string |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |
| Exception | Description |
|---|---|
| \Zend_Pdf_Exception |

setTitle(string $title) : \Zend_Pdf_OutlineSet outline title
| Name | Type | Description |
|---|---|---|
| $title | string |
| Type | Description |
|---|---|
| \Zend_Pdf_Outline |