PoDoFo 0.9.6
Public Member Functions | List of all members
PoDoFo::PdfFilteredDecodeStream Class Reference
Inheritance diagram for PoDoFo::PdfFilteredDecodeStream:
PoDoFo::PdfOutputStream

Public Member Functions

 PdfFilteredDecodeStream (PdfOutputStream *pOutputStream, const EPdfFilter eFilter, bool bOwnStream, const PdfDictionary *pDecodeParms=NULL)
 
virtual pdf_long Write (const char *pBuffer, pdf_long lLen)
 
virtual void Close ()
 
- Public Member Functions inherited from PoDoFo::PdfOutputStream
virtual pdf_long Write (const char *pBuffer, pdf_long lLen)=0
 
pdf_long Write (const std::string &s)
 
virtual void Close ()=0
 

Detailed Description

Create a filter that is a PdfOutputStream.

All data written to this stream is decoded using a filter and written to another PdfOutputStream.

The passed output stream is owned by this PdfOutputStream and deleted along with it (optionally, see constructor).

Constructor & Destructor Documentation

◆ PdfFilteredDecodeStream()

PoDoFo::PdfFilteredDecodeStream::PdfFilteredDecodeStream ( PdfOutputStream pOutputStream,
const EPdfFilter  eFilter,
bool  bOwnStream,
const PdfDictionary pDecodeParms = NULL 
)
inline

Create a filtered output stream.

All data written to this stream is decoded using the passed filter type and written to the passed output stream which will be deleted by this PdfFilteredDecodeStream if the parameter bOwnStream is true.

Parameters
pOutputStreamwrite all data to this output stream after decoding the data. The PdfOutputStream is deleted along with this object if bOwnStream is true.
eFilteruse this filter for decoding.
bOwnStreamif true pOutputStream will be deleted along with this stream
pDecodeParmsadditional parameters for decoding

Member Function Documentation

◆ Close()

virtual void PoDoFo::PdfFilteredDecodeStream::Close ( )
inlinevirtual

Close the PdfOutputStream. This method may throw exceptions and has to be called before the destructor to end writing.

No more data may be written to the output device after calling close.

Implements PoDoFo::PdfOutputStream.

◆ Write()

virtual pdf_long PoDoFo::PdfFilteredDecodeStream::Write ( const char *  pBuffer,
pdf_long  lLen 
)
inlinevirtual

Write data to the output stream

Parameters
pBufferthe data is read from this buffer
lLenthe size of the buffer

Implements PoDoFo::PdfOutputStream.