Manuals

 

SetaPDF_Signer::getPageBoxes()

Description

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

Gets the page boxes of a PDF document.

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 of boxes, while the keys are the box-names (f.g. /MediaBox, /TrimBox,...).

Each box has 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