SetaPDF_Core_Canvas_Simple A class representing minimum functions to access a Canvas.

File: /SetaPDF/Core/Canvas/Simple.php

Class hierarchy

Summary

Properties

$_canvasContainer


Methods

__construct()

public SetaPDF_Core_Canvas_Simple::__construct ( SetaPDF_Core_Canvas_ContainerInterface $canvasContainer )

The constructor.

Parameters
$canvasContainer : SetaPDF_Core_Canvas_ContainerInterface
 

cleanUp()

public void SetaPDF_Core_Canvas_Simple::cleanUp ( void )

Release memory and cycled references.

getContainer()

public SetaPDF_Core_Canvas_ContainerInterface SetaPDF_Core_Canvas_Simple::getContainer ( void )

Get the container of the canvas (origin object).

getResources()

public bool|SetaPDF_Core_Type_AbstractType SetaPDF_Core_Canvas_Simple::getResources ( [ boolean $inherited = true [, boolean $create = false [, string $entryKey = null ]]] )

Returns the resources dictionary or an entry of it.

If no resource dictionary exists it is possible to automatically create it and/or the desired entry.

Parameters
$inherited : boolean

Check for a resources dictionary in parent nodes

$create : boolean

Create dictionary/ies if they do not exists

$entryKey : string

The entries key (Font, XObject,...)

Return Values

Returns the resources object or dictionary or false if none was found.

getStream()

public string SetaPDF_Core_Canvas_Simple::getStream ( void )

Get the whole byte stream of the canvas.

See