Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

PdfOutputStream * PoDoFo::PdfFilterFactory::CreateEncodeStream ( const TVecFilters &  filters,
PdfOutputStream pStream 
) [static]

Create a PdfOutputStream that applies a list of filters on all data written to it.

filtersa list of filters
pStreamwrite all data to this PdfOutputStream after it has been encoded.
a new PdfOutputStream that has to be deleted by the caller.
See also:

Definition at line 302 of file PdfFilter.cpp.

Referenced by PoDoFo::PdfMemStream::BeginAppendImpl(), and PoDoFo::PdfFileStream::BeginAppendImpl().

    TVecFilters::const_iterator it = filters.begin();

    PODOFO_RAISE_LOGIC_IF( !filters.size(), "Cannot create an EncodeStream from an empty list of filters" );

    PdfFilteredEncodeStream* pFilter = new PdfFilteredEncodeStream( pStream, *it, false );

    while( it != filters.end() ) 
        pFilter = new PdfFilteredEncodeStream( pFilter, *it, true );

    return pFilter;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index