Manuals

 

SetaPDF_PdfStamp::setDimensions()

Description

class SetaPDF_PdfStamp extends SetaPDF_Stamp {
mixed setDimensions ( [float $width=null[, float $height=null[, boolean $aspectRatio=false]]] ) }

Sets the width and/or height of the stamp.

Parameters

$width

The width of the stamp in points. If null, it is automatically calculated.

$height

The height of the stamp in points. If null, it is automatically calculated.

$aspectRatio

Keep aspect ratio.

Return value

An array holding the new dimensions of the stamp. The key 'w' holds the width and the key 'h' holds the height.