SetaPDF_Core_XObject Abstract class representing an external object
File: /SetaPDF v2/Core/XObject.php
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
Type constant
TYPE_EXT_G_STATE
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
Static Methods
freeCache()
get()
public static SetaPDF_Core_XObject::get (
SetaPDF_Core_Type_IndirectObjectInterface $xObjectReference [, string $subType = null ]
): SetaPDF_Core_XObject_Form|SetaPDF_Core_XObject_ImageGet an external object by an indirect object/reference.
Parameters
- $xObjectReference : SetaPDF_Core_Type_IndirectObjectInterface
- $subType : string
Exceptions
Methods
__construct()
public SetaPDF_Core_XObject::__construct (
SetaPDF_Core_Type_IndirectObjectInterface $indirectObject
)The constructor.
Parameters
- $indirectObject : SetaPDF_Core_Type_IndirectObjectInterface
draw()
abstract public SetaPDF_Core_XObject::draw (
SetaPDF_Core_Canvas $canvas [, int $x = 0 [, int $y = 0 [, null|float $width = null [, null|float $height = null ]]]]
): mixedDraw the external object on the canvas.
Parameters
- $canvas : SetaPDF_Core_Canvas
- $x : int
- $y : int
- $width : null|float
- $height : null|float
getIndirectObject()
public SetaPDF_Core_XObject::getIndirectObject (
[ SetaPDF_Core_Document|null $document = null ]
): SetaPDF_Core_Type_IndirectObjectGet the indirect object of this XObject.
Parameters
- $document : SetaPDF_Core_Document|null