XObject Stamp
Table of Contents
Introduction
The XObject stamp class allows you to create the stamp appearance absolutely individually by access its canvas object.
Create an Instance
An instance could be created by passing an XObject to its constructor:
PHP
// create a XObject $xObject = \SetaPDF_Core_XObject_Form::create($document, array(0, 0, 200, 200)); // create a stamp instance $xObjectStamp = new \SetaPDF_Stamper_Stamp_XObject($xObject);
Configure Properties
Beside the general stamp properties the xobject stamp class offers following properties that allow you to define its dimensions:
getDimensions()
Get the stamp dimension.
getHeight()
Get the height of the XObject stamp.
getWidth()
Get the width of the XObject stamp.
setDimensions()
Set the dimensions of this stamp.
setHeight()
Set the individual height if the XObject stamp.
setWidth()
Set the individual width of the XObject stamp.