Manuals

 

SetaPDF_Signer::sign()

Description

class SetaPDF_Signer extends SetaPDF {
mixed sign ( SetaPDF_Signer_Module &$module, string $target[, string $dest='I'] ) }

This method starts the signing process.

Parameters

&$module

An instance of a signing module. Currently only modules for OpenSSL are available. See SetaPDF_Signer_Module_OpenSsl and SetaPDF_Signer_Module_OpenSslCli.

$target

The resulting filename or path to the local filesystem where the resulting document will be saved.

$dest

Defines how the resulting document is handled:

  • "F" saves the file to the file system
  • "D" the file will be send to the client with a download dialogue
  • "I" the file will be displayed in the client's browser window.

Return Values

True is everything works as expected or an SetaPDF_Error object if an error occurs.