Resource extractor class is used to detach resources from original PDF document.

It provides resources sharing, so different pages or other PDF resources can share its dependent resources (e.g. fonts or images) or other resources still use them without duplication. It also reduces output PDF size, required memory for PDF processing and processing time.

The same extractor may be used for different source documents, several extractors may be used for constracting one target document, but extractor must not be shared between target documents.

package Zend_Pdf
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (
license New BSD License


Object constructor.


Clone page, extract it and dependent objects from the current document, so it can be used within other docs

clonePage(\Zend_Pdf_Page $page) 

return Zend_Pdf_Page





PDF objects factory.

$_factory : \Zend_Pdf_ElementFactory_Interface



Reusable list of already processed objects

$_processed : array