API Documentation

Zend/Pdf/Canvas.php

Show: inherited
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-2012 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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedfloat  $_height= ''

Canvas height expressed in default user space units (1/72 inch)

Details
Type
float
Propertyprotectedarray  $_procSet= 'array()'

Canvas procedure sets.

Allowed values: 'PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'.

Default valuearray()Details
Type
array
Propertyprotected  $_resources= 'array('Font' => array()'
Default valuearray('Font' => array()Details
Type
Propertyprotectedfloat  $_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
Name Type Description
$width float
$height float
methodprotected_addProcSet( string $procSetName ) : void

Add procedure set to the canvas description

Parameters
Name Type Description
$procSetName string
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
Name Type Description
$type string
$resource \Zend_Pdf_Resource
Returns
Type Description
string
methodpublicgetHeight( ) : float

Return the height of this page in points.

Returns
Type Description
float
methodpublicgetWidth( ) : float

Return the width of this page in points.

Returns
Type Description
float
Documentation was generated by DocBlox 0.15.1.