class SetaPDF_Encryptor extends SetaPDF {
mixed factory ( string $sourcefile[, string $tmpDirectory=null] ) }
This method has to be called static and will return an instance of the SetaPDF_Encryptor class or an SetaPDF_Error object.
A string that defines the path (relative or absolute) to the original document. Only local paths are allowed.
A path for temporary files. If not or null is passed the default fallback directory SetaPDF/Encryptor/_tmp/ is used.
This parameter only affects the usage if you're going to use Public Key Security.
In case of success you get a new instance of the SetaPDF_Encryptor class.
On failure an SetaPDF_Error object will be returned. It is strongly recommened to check this return value with SetaPDF::isError().
The $tmpDirectory-parameter is available since version 1.6