Pdf/Canvas.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-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
Returns
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
array $_procSet = array()
Canvas procedure sets.
Allowed values: 'PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'.
Default valuearray()
Details- Type
- array
$_resources = array('Font' => array(), 'XObject' => array(), 'ExtGState' => array())
Default value
array('Font' => array(), 'XObject' => array(), 'ExtGState' => array())
Details- Type
- n/a
Methods
__construct(float $width, float $height) : void
Object constructor
Parameters
Name | Type | Description |
---|---|---|
$width | float | |
$height | float |
_addProcSet(string $procSetName) : void
Add procedure set to the canvas description
Parameters
Name | Type | Description |
---|---|---|
$procSetName | string |
_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'
ParametersName | Type | Description |
---|---|---|
$type | string | |
$resource | \Zend_Pdf_Resource |
Type | Description |
---|---|
string |