API Documentation

Pdf/Resource.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
version
$Id: Resource.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Pdf_Resource

Description

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.

Zend_Pdf_Resource

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
Properties
$_objectFactory
$_resource
Methods
__construct
getResource
getFactory

Description

PDF file Resource abstraction

Properties

$_objectFactory

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

$_objectFactory
Zend_Pdf_ElementFactory_Interface
visibility
protected
default
final
false
static
false

$_resource

Zend_Pdf_Element_Object $_resource = ''

Main resource object

Details

$_resource
Zend_Pdf_Element_Object
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( Zend_Pdf_Element|string $resource ) :

Object constructor.

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

Arguments
$resource
Zend_Pdf_Elementstring
Details
visibility
public
final
false
static
false

getFactory

getFactory( ) : Zend_Pdf_ElementFactory_Interface

Get factory.

Details
visibility
public
final
false
static
false
internal

getResource

getResource( ) : Zend_Pdf_Element_Object

Get resource.

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

Details
visibility
public
final
false
static
false
internal
Documentation was generated by DocBlox.