25 #require_once 'Zend/Pdf/Element/Array.php'; 26 #require_once 'Zend/Pdf/Element/Dictionary.php'; 27 #require_once 'Zend/Pdf/Element/Numeric.php'; 28 #require_once 'Zend/Pdf/Element/String.php'; 32 #require_once 'Zend/Pdf/Outline.php'; 130 $this->_italic = $isItalic;
152 $this->_bold = $isBold;
176 $this->_color = $color;
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');
225 #require_once 'Zend/Pdf/Exception.php'; 250 SplObjectStorage $processedOutlines =
null)
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;
setOptions(array $options)
setColor(Zend_Pdf_Color_Rgb $color)
__construct($options=array())
dumpOutline(Zend_Pdf_ElementFactory_Interface $factory, $updateNavigation, Zend_Pdf_Element $parent, Zend_Pdf_Element $prev=null, SplObjectStorage $processedOutlines=null)