本文整理匯總了PHP中Zend_Pdf_Element_Object::getKeys方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Pdf_Element_Object::getKeys方法的具體用法?PHP Zend_Pdf_Element_Object::getKeys怎麽用?PHP Zend_Pdf_Element_Object::getKeys使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Pdf_Element_Object
的用法示例。
在下文中一共展示了Zend_Pdf_Element_Object::getKeys方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: clonePage
/**
* Clone page, extract it and dependent objects from the current document,
* so it can be used within other docs.
*
* @internal
* @param Zend_Pdf_ElementFactory_Interface $factory
* @param array $processed
* @return Zend_Pdf_Page
*/
public function clonePage($factory, &$processed)
{
// Clone dictionary object.
// Do it explicitly to prevent sharing page attributes between different
// results of clonePage() operation (other resources are still shared)
$dictionary = new Zend_Pdf_Element_Dictionary();
foreach ($this->_dictionary->getKeys() as $key) {
$dictionary->{$key} = $this->_dictionary->{$key}->makeClone($factory->getFactory(), $processed, Zend_Pdf_Element::CLONE_MODE_SKIP_PAGES);
}
$clonedPage = new Zend_Pdf_Page($factory->newObject($dictionary), $factory);
$clonedPage->_attached = false;
return $clonedPage;
}