#include <PdfMemStream.h>
Inheritance diagram for PoDoFo::PdfMemStream:
Public Member Functions | |
PdfMemStream (PdfObject *pParent) | |
PdfMemStream (const PdfMemStream &rhs) | |
virtual void | Write (PdfOutputDevice *pDevice, PdfEncrypt *pEncrypt=NULL) |
virtual void | GetCopy (char **pBuffer, pdf_long *lLen) const |
virtual void | GetCopy (PdfOutputStream *pStream) const |
const char * | Get () const |
virtual pdf_long | GetLength () const |
void | FlateCompress () |
void | Uncompress () |
void | Empty () |
const PdfStream & | operator= (const PdfStream &rhs) |
Protected Member Functions | |
virtual const char * | GetInternalBuffer () const |
virtual pdf_long | GetInternalBufferSize () const |
virtual void | BeginAppendImpl (const TVecFilters &vecFilters) |
virtual void | AppendImpl (const char *pszString, size_t lLen) |
virtual void | EndAppendImpl () |
A PDF memory stream is held completely in memory.
Most of the time it will contain either drawing commands to draw onto a page or binary data like a font or an image.
A PdfMemStream is implicitly shared and can therefore be copied very quickly.
|
Create a new PdfStream object which has a parent PdfObject. The stream will be deleted along with the parent. This constructor will be called by PdfObject::Stream() for you.
|
|
Create a shallow copy of a PdfStream object
|
|
Append a binary buffer to the current stream contents.
Implements PoDoFo::PdfStream. |
|
Begin appending data to this stream. Clears the current stream contents.
Implements PoDoFo::PdfStream. |
|
Empty's the stream and set the streams buffer size to 0 |
|
Finish appending data to the stream Implements PoDoFo::PdfStream. |
|
This function compresses any currently set stream using the FlateDecode(ZIP) algorithm. JPEG compressed streams will not be compressed again using this function. Entries to the filter dictionary will be added if necessary. |
|
Get a read-only handle to the current stream data. The data will not be filtered before being returned, so (eg) calling Get() on a Flate compressed stream will return a pointer to the Flate-compressed buffer.
|
|
Get a copy of a the stream and write it to a PdfOutputStream
Implements PoDoFo::PdfStream. |
|
Get a malloced buffer of the current stream. No filters will be applied to the buffer, so if the stream is Flate compressed the compressed copy will be returned. The caller has to free() the buffer.
Implements PoDoFo::PdfStream. |
|
Required for the GetFilteredCopy implementation
Implements PoDoFo::PdfStream. |
|
Required for the GetFilteredCopy implementation
Implements PoDoFo::PdfStream. |
|
Get the stream's length. The length is that of the internal stream buffer, so (eg) for a Flate-compressed stream it will be the length of the compressed data.
Implements PoDoFo::PdfStream. |
|
Create a copy of a PdfStream object
Reimplemented from PoDoFo::PdfStream. |
|
This method removes all filters from the stream |
|
Write the stream to an output device
Implements PoDoFo::PdfStream. |