import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -20,9 +20,6 @@
* @version $Id$
*/
/** Zend_Pdf_ElementFactory */
require_once 'Zend/Pdf/ElementFactory.php';
/**
* PDF target (action or destination)
@ -42,9 +39,11 @@ abstract class Zend_Pdf_Target
* @throws Zend_Pdf_Exception
*/
public static function load(Zend_Pdf_Element $resource) {
require_once 'Zend/Pdf/Element.php';
if ($resource->getType() == Zend_Pdf_Element::TYPE_DICTIONARY) {
if (($resource->Type === null || $resource->Type->value =='Action') && $resource->S !== null) {
// It's a well-formed action, load it
require_once 'Zend/Pdf/Action.php';
return Zend_Pdf_Action::load($resource);
} else if ($resource->D !== null) {
// It's a destination
@ -56,9 +55,10 @@ abstract class Zend_Pdf_Target
}
if ($resource->getType() == Zend_Pdf_Element::TYPE_ARRAY ||
$resource->getType() == Zend_Pdf_Element::TYPE_NAME ||
$resource->getType() == Zend_Pdf_Element::TYPE_STRING) {
$resource->getType() == Zend_Pdf_Element::TYPE_NAME ||
$resource->getType() == Zend_Pdf_Element::TYPE_STRING) {
// Resource is an array, just treat it as an explicit destination array
require_once 'Zend/Pdf/Destination.php';
return Zend_Pdf_Destination::load($resource);
} else {
require_once 'Zend/Pdf/Exception.php';