Zend Framework
1.12
|
Public Member Functions | |
__construct ($objCount) | |
Object constructor. | |
getFactory () | |
Get factory. | |
close () | |
Close factory and clean-up resources. | |
resolve () | |
Get source factory object. | |
getId () | |
Get factory ID. | |
setObjectCount ($objCount) | |
Set object counter. | |
getObjectCount () | |
Get object counter. | |
attach (Zend_Pdf_ElementFactory_Interface $factory) | |
Attach factory to the current;. | |
calculateShift (Zend_Pdf_ElementFactory_Interface $factory) | |
Calculate object enumeration shift. | |
cleanEnumerationShiftCache () | |
Clean enumeration shift cache. | |
getEnumerationShift (Zend_Pdf_ElementFactory_Interface $factory) | |
Retrive object enumeration shift. | |
markAsModified (Zend_Pdf_Element_Object $obj) | |
Mark object as modified in context of current factory. | |
remove (Zend_Pdf_Element_Object $obj) | |
Remove object in context of current factory. | |
newObject (Zend_Pdf_Element $objectValue) | |
Generate new Zend_Pdf_Element_Object. | |
newStreamObject ($streamValue) | |
Generate new Zend_Pdf_Element_Object_Stream. | |
listModifiedObjects ($rootFactory=null) | |
Enumerate modified objects. | |
registerObject (Zend_Pdf_Element_Object $obj, $refString) | |
Register object in the factory. | |
fetchObject ($refString) | |
Fetch object specified by reference. | |
isModified () | |
Check if PDF file was modified. | |
Static Public Member Functions | |
static | createFactory ($objCount) |
Factory generator. | |
__construct | ( | $objCount | ) |
Object constructor.
integer | $objCount |
attach | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Attach factory to the current;.
Zend_Pdf_ElementFactory_Interface | $factory |
Don't attach factory twice. We do not check recusively because of nature of attach operation (Pages are always attached to the Documents, Fonts are always attached to the pages even if pages already use Document level object factory and so on)
Implements Zend_Pdf_ElementFactory_Interface.
calculateShift | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Calculate object enumeration shift.
Zend_Pdf_ElementFactory_Interface | $factory |
Implements Zend_Pdf_ElementFactory_Interface.
cleanEnumerationShiftCache | ( | ) |
Clean enumeration shift cache.
Has to be used after PDF render operation to let followed updates be correct.
Implements Zend_Pdf_ElementFactory_Interface.
close | ( | ) |
Close factory and clean-up resources.
Implements Zend_Pdf_ElementFactory_Interface.
|
static |
fetchObject | ( | $refString | ) |
Fetch object specified by reference.
string | $refString |
getEnumerationShift | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Retrive object enumeration shift.
Zend_Pdf_ElementFactory_Interface | $factory |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
getFactory | ( | ) |
getId | ( | ) |
getObjectCount | ( | ) |
isModified | ( | ) |
listModifiedObjects | ( | $rootFactory = null | ) |
Enumerate modified objects.
Returns array of Zend_Pdf_UpdateInfoContainer
Zend_Pdf_ElementFactory_Interface | $rootFactory |
Implements Zend_Pdf_ElementFactory_Interface.
markAsModified | ( | Zend_Pdf_Element_Object | $obj | ) |
Mark object as modified in context of current factory.
Zend_Pdf_Element_Object | $obj |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
newObject | ( | Zend_Pdf_Element | $objectValue | ) |
Generate new Zend_Pdf_Element_Object.
Zend_Pdf_Element | $objectValue |
Implements Zend_Pdf_ElementFactory_Interface.
newStreamObject | ( | $streamValue | ) |
Generate new Zend_Pdf_Element_Object_Stream.
mixed | $objectValue |
Implements Zend_Pdf_ElementFactory_Interface.
registerObject | ( | Zend_Pdf_Element_Object | $obj, |
$refString | |||
) |
Register object in the factory.
It's used to clear "parent object" referencies when factory is closed and clean up resources
string | $refString | |
Zend_Pdf_Element_Object | $obj |
remove | ( | Zend_Pdf_Element_Object | $obj | ) |
Remove object in context of current factory.
Zend_Pdf_Element_Object | $obj |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
resolve | ( | ) |
Get source factory object.
Implements Zend_Pdf_ElementFactory_Interface.
setObjectCount | ( | $objCount | ) |