SetaPDF_Signer::factory()
Description
class SetaPDF_Signer extends SetaPDF {
factory ( string $sourceFileName[, string $tmpDirectory=null] )
}
This method has to be called static and will return an instance of the SetaPDF_Signer class.
The SetaPDF_Signer class also can be initiated without the factory method in the normal PHP style:
$signer = new SetaPDF_Signer();
In this case you have to set the $sourceFileName with SetaPDF_Signer::setSourceFileName()-Method.
Parameters
$sourceFileName
A string that defines the path (relative or absolute) to the original document. Only local paths are allowed.
$tmpDirectory
A path for temporary files. If not or null is passed the default fallback directory SetaPDF/Signer/_tmp/ is used.
Return Values
A new instance of the SetaPDF_Signer class or an SetaPDF_Error object if an error occurs.