Definition at line 44 of file Created.php.
◆ __construct()
__construct |
( |
|
$options = array() | ) |
|
Object constructor
- Parameters
-
- Exceptions
-
Definition at line 222 of file Created.php.
225 #require_once 'Zend/Pdf/Exception.php'; setOptions(array $options)
◆ dumpOutline()
Dump Outline and its child outlines into PDF structures
Returns dictionary indirect object or reference
Definition at line 246 of file Created.php.
252 if ($processedOutlines ===
null) {
253 $processedOutlines =
new SplObjectStorage();
255 $processedOutlines->attach($this);
265 $outlineDictionary->Dest =
$target->getResource();
267 $outlineDictionary->A =
$target->getResource();
269 #require_once 'Zend/Pdf/Exception.php'; 270 throw new Zend_Pdf_Exception(
'Outline target has to be Zend_Pdf_Destination, Zend_Pdf_Action object or null');
274 if ($color !==
null) {
275 $components = $color->getComponents();
284 ($this->
isBold()? 2 : 0));
288 $outlineDictionary->Parent = $parent;
289 $outlineDictionary->Prev = $prev;
292 foreach ($this->childOutlines as $childOutline) {
293 if ($processedOutlines->contains($childOutline)) {
294 #require_once 'Zend/Pdf/Exception.php'; 298 if ($lastChild ===
null) {
299 $lastChild = $childOutline->dumpOutline(
$factory,
true, $outlineDictionary,
null, $processedOutlines);
300 $outlineDictionary->First = $lastChild;
302 $childOutlineDictionary = $childOutline->dumpOutline(
$factory,
true, $outlineDictionary, $lastChild, $processedOutlines);
303 $lastChild->Next = $childOutlineDictionary;
304 $lastChild = $childOutlineDictionary;
307 $outlineDictionary->Last = $lastChild;
309 if (
count($this->childOutlines) != 0) {
313 return $outlineDictionary;
◆ getColor()
◆ getTarget()
◆ getTitle()
Get outline title.
- Returns
- string
Definition at line 95 of file Created.php.
◆ isBold()
Returns true if outline item is displayed in bold
- Returns
- boolean
Definition at line 139 of file Created.php.
◆ isItalic()
Returns true if outline item is displayed in italic
- Returns
- boolean
Definition at line 117 of file Created.php.
◆ setColor()
Set outline text color. (null means default color which is black)
- Parameters
-
- Returns
- Zend_Pdf_Outline
Definition at line 174 of file Created.php.
176 $this->_color = $color;
◆ setIsBold()
◆ setIsItalic()
◆ setTarget()
setTarget |
( |
|
$target = null | ) |
|
Set outline target. Null means no target
- Parameters
-
- Returns
- Zend_Pdf_Outline
- Exceptions
-
Definition at line 198 of file Created.php.
201 #require_once 'Zend/Pdf/Destination/Named.php'; 208 #require_once 'Zend/Pdf/Exception.php'; 209 throw new Zend_Pdf_Exception(
'Outline target has to be Zend_Pdf_Destination or Zend_Pdf_Action object or string');
◆ setTitle()
◆ $_bold
◆ $_color
◆ $_italic
◆ $_target
◆ $_title
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Outline/Created.php