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.
Canvas is an abstract rectangle drawing area which can be dropped into page object at specified place.

float
$_height= ''
Canvas height expressed in default user space units (1/72 inch)

array
$_procSet= 'array()'
Canvas procedure sets.
Allowed values: 'PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'.
array()
Details
__construct(
float $width, float $height
)
:
void
Object constructor
Name | Type | Description |
---|---|---|
$width | float | |
$height | float |

_addProcSet(
string $procSetName
)
:
void
Add procedure set to the canvas description
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'
Name | Type | Description |
---|---|---|
$type | string | |
$resource | \Zend_Pdf_Resource |
Type | Description |
---|---|
string |