## Zend_Pdf_Resource

Description

PDF file Resource abstraction

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

Located in /Zend/Pdf/Resource.php (line 38)

Direct descendents

Class | Description
--- | ---
Zend_Pdf_Resource_Font | Abstract class which manages PDF fonts.
Zend_Pdf_Image | Image abstraction.

Variable Summary
Zend_Pdf_ElementFactory $_objectFactory
Zend_Pdf_Element_Object $_resource
Method Summary
Zend_Pdf_Resource __construct (Zend_Pdf_Element|string $resource)
Zend_Pdf_Element_Object getResource ()
Variables
Zend_Pdf_ElementFactory $_objectFactory (line 58)

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).

- access: protected

Zend_Pdf_Element_Object $_resource (line 65)

Main resource object

- access: protected

Methods
Constructor __construct (line 75)

Object constructor.

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

- access: public

Zend_Pdf_Resource __construct (Zend_Pdf_Element|string $resource)

- Zend_Pdf_Element|string $resource

Redefined in descendants as:

- Zend_Pdf_Resource_Font::__construct() : Object constructor.
- Zend_Pdf_Resource_Font_OpenType::__construct() : Object constructor
- Zend_Pdf_Resource_Font_OpenType_TrueType::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_Courier::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_CourierBold::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_CourierBoldOblique::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_CourierOblique::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_Helvetica::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_HelveticaBold::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_HelveticaBoldOblique::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_HelveticaOblique::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_Symbol::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_TimesBold::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_TimesBoldItalic::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_TimesItalic::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_TimesRoman::__construct() : Object constructor
- Zend_Pdf_Resource_Font_Standard_ZapfDingbats::__construct() : Object constructor
- Zend_Pdf_Image::__construct() : Object constructor.
- Zend_Pdf_Image_JPEG::__construct() : Object constructor
- Zend_Pdf_Image_PNG::__construct() : Object constructor
- Zend_Pdf_Image_TIFF::__construct() : Object constructor

getResource (line 92)

Get resource.

Used to reference resource in an internal PDF data structures (resource dictionaries)

- access: public

Zend_Pdf_Element_Object getResource ()

Documentation generated on Wed, 21 Feb 2007 11:58:26 -0800 by phpDocumentor 1.3.1