Manuals

 

SetaPDF_Signer::getOriginBox()

Description

class SetaPDF_Signer extends SetaPDF {
mixed getOriginBox ( integer $pageNo[, mixed $fileName=null] ) }

Gets the origin page box. This will be the /CropBox or the /MediaBox. The method will check the existence of the desired box for you.

Parameters

$pageNo

The page number

$fileName

The path of the PDF file. If not set, the document which is set in the factory()-method or by setSourceFileName() is taken.

Return Values

An array with the following entries:

  • x: the abscissa
  • y: ordinate
  • w: the width
  • h: the height
  • llx: lower left abscissa
  • lly: lower left ordinate
  • urx: upper right abscissa
  • ury: upper right ordinate

If an error occurs this method will return a SetaPDF_Error-Object.

Version

since 1.4