SetaPDF_Core_Writer_Http A writer class for HTTP delivery
File: /SetaPDF v2/Core/Writer/Http.php
Class hierarchy
Implements
Summary
Properties
$_handle
The file stream resource
Static Methods
encodeFilenameForHttpHeader()
Encodes the file name for the http header.
Parameters
- $filename : string
Methods
__construct()
The constructor.
Parameters
- $filename : string
The document filename in UTF-8 encoding
- $inline : boolean
Defines if the document should be displayed inline or if a download should be forced
copy()
Copies an existing stream into the target stream.
Parameters
- $source : resource|SetaPDF_Core_Writer_Stream
finish()
This method is called when the writing process is finished.
It sends the HTTP headers and send the buffer to the client.
Exceptions
getHandle()
Gets the handle of the stream.
This method is overwritten to ensure that the handle is only accessed when the writer instance has the status "finished".
setOutputChunkSize()
Set the chunk size of the data that is read from the internal stream and echoed.
The default value is 4 MB. You may increase this which may speed up the delivery of large files but will also increase the memory usage respectively.
Parameters
- $outputChunkSize : int
Size in bytes.