Manuals

 

SetaPDF_Signer::setAppearance()

Description

class SetaPDF_Signer extends SetaPDF {
void setAppearance ( string $fileName[, mixed $x|$position=0[, mixed $y|$translate=0[, mixed $w=null[, mixed $h=null[, integer $pageNo=1]]]]] ) }

With this method you can add a visible signature appearance to the document.

The size can be specified in different ways:

  • explicit width (w) and height (h)
  • one explicit dimension (w or h), the other being calculated automatically in order to keep the original proportions
  • no explicit dimension, the size of the original document is taken

Parameters

$fileName

A string that defines the path (relative or absolute) to a PDF file that represents the appearance as the first page. Only local paths are allowed.

$x|$position

The position on the abscissa.

OR

A position in the following format:

  • LT = left top
  • LM = left middle
  • LB = left bottom
  • CT = center top
  • CM = center middle
  • CB = center bottom
  • RT = right top
  • RM = right middle
  • RB = right bottom

$y|$translate

The position on the ordinate.

OR

An array with x- and/or y-values for a translation based on the position defined in the previous parameter:

array(
   'x' => 20,
   'y' => -10
)

$w

The width in points.

$h

The height in points.

$pageNo

The page on which the appearance should appear.

Version

since 1.4