|
| 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 |
|
| PdfStream (PdfObject *pParent) |
|
virtual void | Write (PdfOutputDevice *pDevice, PdfEncrypt *pEncrypt=NULL)=0 |
|
void | Set (const char *szBuffer, pdf_long lLen, const TVecFilters &vecFilters) |
|
void | Set (const char *szBuffer, pdf_long lLen) |
|
void | Set (PdfInputStream *pStream) |
|
void | Set (PdfInputStream *pStream, const TVecFilters &vecFilters) |
|
void | Set (const char *pszString) |
|
void | SetRawData (PdfInputStream *pStream, pdf_long lLen=-1) |
|
void | BeginAppend (bool bClearExisting=true) |
|
void | BeginAppend (const TVecFilters &vecFilters, bool bClearExisting=true, bool bDeleteFilters=true) |
|
void | Append (const char *pszString, size_t lLen) |
|
void | Append (const char *pszString) |
|
void | Append (const std::string &sString) |
|
void | EndAppend () |
|
bool | IsAppending () const |
|
virtual pdf_long | GetLength () const =0 |
|
virtual void | GetCopy (char **pBuffer, pdf_long *lLen) const =0 |
|
virtual void | GetCopy (PdfOutputStream *pStream) const =0 |
|
void | GetFilteredCopy (char **pBuffer, pdf_long *lLen) const |
|
void | GetFilteredCopy (PdfOutputStream *pStream) const |
|
const PdfStream & | operator= (const PdfStream &rhs) |
|
A PDF stream can be appended to any PdfObject and can contain arbitrary data.
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.
- See also
- PdfVecObjects
-
PdfStream
-
PdfMemoryStream
-
PdfFileStream
void PoDoFo::PdfFileStream::GetCopy |
( |
char ** |
pBuffer, |
|
|
pdf_long * |
lLen |
|
) |
| const |
|
virtual |
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 podofo_free() the buffer.
This is currently not implemented for PdfFileStreams and will raise an ePdfError_InternalLogic exception
- Parameters
-
pBuffer | pointer to the buffer address (output parameter) |
lLen | pointer to the buffer length (output parameter) |
Implements PoDoFo::PdfStream.