#include <PdfFileStream.h>
Inheritance diagram for PoDoFo::PdfFileStream:
Public Member Functions | |
PdfFileStream (PdfObject *pParent, PdfOutputDevice *pDevice) | |
void | SetEncrypted (PdfEncrypt *pEncrypt) |
virtual void | Write (PdfOutputDevice *pDevice, PdfEncrypt *pEncrypt=NULL) |
virtual void | GetCopy (char **pBuffer, pdf_long *lLen) const |
virtual void | GetCopy (PdfOutputStream *pStream) const |
virtual pdf_long | GetLength () const |
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 () |
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 PdfFileStream writes all data directly to an output device without keeping it in memory. PdfFileStream is used automatically when creating PDF files using PdfImmediateWriter.
PdfMemoryStream
|
Create a new PdfFileStream 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.
|
|
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. |
|
Finish appending data to the stream Implements PoDoFo::PdfStream. |
|
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. This is currently not implemented for PdfFileStreams and will raise an ePdfError_InternalLogic exception
Implements PoDoFo::PdfStream. |
|
Required for the GetFilteredCopy implementation
Implements PoDoFo::PdfStream. |
|
Required for the GetFilteredCopy implementation
Implements PoDoFo::PdfStream. |
|
Get the streams length with all filters applied (eg the compressed length of a Flate compressed stream).
Implements PoDoFo::PdfStream. |
|
Set an encryption object which is used to encrypt all data written to this stream.
|
|
Write the stream to an output device
Implements PoDoFo::PdfStream. |