SetaPDF_Core_Canvas_Simple A class representing minimum functions to access a Canvas.
File: /SetaPDF v2/Core/Canvas/Simple.php
Class hierarchy
Summary
Properties
Methods
__construct()
public SetaPDF_Core_Canvas_Simple::__construct (
SetaPDF_Core_Canvas_ContainerInterface $canvasContainer
)The constructor.
Parameters
- $canvasContainer : SetaPDF_Core_Canvas_ContainerInterface
getResources()
public SetaPDF_Core_Canvas_Simple::getResources (
[ boolean $inherited = true [, boolean $create = false [, string $entryKey = null ]]]
): false|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_ArrayReturns 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 dictionary, a dictionary by an entry key or false if none was found.
Exceptions
Throws SetaPDF_Core_Type_Exception