SetaPDF_Stamper::factory()
Description
class SetaPDF_Stamper extends SetaPDF {
mixed factory ( [string $dest='F'[, boolean $stream=false]] )
}
This method has to be called static and will return an instance of the SetaPDF_Stamper class or an SetaPDF_Error object.
Parameters
$dest
Defines how the resulting documents are handled:
- "F" saves the file to the file system
- "D" the file will be send to the client with a download dialogue (not possible in batch mode)
- "I" the file will be displayed in the client's browser window. (not possible in batch mode)
$stream
This parameter is only used if $dest is set to "D" or "I". If it is set to true, the document will be sent immediately as soon as the first content bytes are available. In this case the length-header will not be sent. If this parameter is set to false, the whole document is held in memory until it is completely assembled.
The streaming facility is very effective, because the client does not become aware of any script processing time.
Return Values
In case of success you get a new instance of the SetaPDF_Stamper class.
On failure an SetaPDF_Error object will be returned. It is strongly recommened to check this return value with SetaPDF::isError().