• Bookmark at: Del.icio.us
  • Bookmark at: Mister Wong
  • Bookmark at: Linkarena
  • Bookmark at: Digg
  • Bookmark at: Yahoo
  • Bookmark at: Google
  • Bookmark at: Icio

Manuals

 

SetaPDF_Encryptor::factory()

Description

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.

Parameters

$sourcefile

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/Encryptor/_tmp/ is used.

This parameter only affects the usage if you're going to use Public Key Security.

Return Values

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().

Version

The $tmpDirectory-parameter is available since version 1.6