SetaPDF_MetaManager::output()
Description
class SetaPDF_MetaManager extends SetaPDF {
mixed output ( [string $fileName='doc.pdf'[, string $dest='F'[, boolean $stream=false[, mixed $newDocumentId=null]]]] )
}
Gets the documents File Identifiers (see PDF Reference 10.3).
Parameters
$fileName
A valid path and filename for the new document if the dest-parameter is set to "F". Otherwise the name of the new PDF document.
$dest
Defines how the encrypted 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.
$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.
$newDocumentId
You can define your own changing identifier with this parameter. Just pass the plain text value to this parameter and it'll be set as the new changing identifier. If set to null the API will create an own new changing identifier for the new revision of the document. (More Informations about creating an file identifier can be found in the PDF Reference 10.3)
Return Value
True - if everything works as expected - an SetaPDF_Error object if an error occurs.