API Documentation

Pdf/Resource.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  
version
$Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Pdf_Resource

PDF file Resource abstraction

copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  

Properties

Propertyprotected\Zend_Pdf_ElementFactory_Interface  $_objectFactory= ''

Each Pdf resource (fonts, images, ...) interacts with a PDF itself.

It creates appropriate PDF objects, structures and sometime embedded files. Resources are referenced in content streams by names, which are stored in a page resource dictionaries.

Thus, resources must be attached to the PDF.

Resource abstraction uses own PDF object factory to store all necessary information. At the render time internal object factory is appended to the global PDF file factory.

Resource abstraction also cashes information about rendered PDF files and doesn't duplicate resource description each time then Resource is rendered (referenced).

Details
Type
\Zend_Pdf_ElementFactory_Interface
Propertyprotected\Zend_Pdf_Element_Object  $_resource= ''

Main resource object

Methods

methodpublic__clone( ) : void

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

methodpublic__construct( \Zend_Pdf_Element|string $resource ) : void

Object constructor.

If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.

Parameters
Name Type Description
$resource \Zend_Pdf_Element|string
Documentation was generated by DocBlox 0.13.3.