Pdf/Canvas.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id: Style.php 20096 2010-01-06 02:05:09Z bkarwin $  

\Zend_Pdf_Canvas

Package: Zend_Pdf
Canvas is an abstract rectangle drawing area which can be dropped into page object at specified place.
Parent(s)
\Zend_Pdf_Canvas_Abstract
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedfloat $_height
Canvas height expressed in default user space units (1/72 inch)
Details
Type
float
>VPropertyprotectedarray $_procSet = array()
Canvas procedure sets.
Allowed values: 'PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'.
Default valuearray()Details
Type
array
>VPropertyprotected$_resources = array('Font' => array(), 'XObject' => array(), 'ExtGState' => array())
Default valuearray('Font' => array(), 'XObject' => array(), 'ExtGState' => array())Details
Type
n/a
>VPropertyprotectedfloat $_width
Canvas width expressed in default user space units (1/72 inch)
Details
Type
float

Methods

methodpublic__construct(float $width, float $height) : void

Object constructor

Parameters
NameTypeDescription
$widthfloat
$heightfloat
methodprotected_addProcSet(string $procSetName) : void

Add procedure set to the canvas description

Parameters
NameTypeDescription
$procSetNamestring
methodprotected_attachResource(string $type, \Zend_Pdf_Resource $resource) : string

Attach resource to the canvas

Method returns a name of the resource which can be used as a resource reference within drawing instructions stream Allowed types: 'ExtGState', 'ColorSpace', 'Pattern', 'Shading', 'XObject', 'Font', 'Properties'
Parameters
NameTypeDescription
$typestring
$resource\Zend_Pdf_Resource
Returns
TypeDescription
string
methodpublicgetHeight() : float

Return the height of this page in points.

Returns
TypeDescription
float
methodpublicgetWidth() : float

Return the width of this page in points.

Returns
TypeDescription
float
Documentation was generated by phpDocumentor 2.2.0 .