|
PoDoFo 0.7.0
|
#include <PdfFilter.h>
Static Public Member Functions | |
| static std::auto_ptr< PdfFilter > | Create (const EPdfFilter eFilter) |
| static PdfOutputStream * | CreateEncodeStream (const TVecFilters &filters, PdfOutputStream *pStream) |
| static PdfOutputStream * | CreateDecodeStream (const TVecFilters &filters, PdfOutputStream *pStream, const PdfDictionary *pDictionary=NULL) |
| static EPdfFilter | FilterNameToType (const PdfName &name) |
| static const char * | FilterTypeToName (EPdfFilter eFilter) |
| static TVecFilters | CreateFilterList (const PdfObject *pObject) |
A factory to create a filter object for a filter GetType from the EPdfFilter enum.
All filters should be created using this factory.
| std::auto_ptr< PdfFilter > PoDoFo::PdfFilterFactory::Create | ( | const EPdfFilter | eFilter | ) | [static] |
Create a filter from an enum.
Ownership is transferred to the caller, who should let the auto_ptr the filter is returned in take care of freeing it when they're done with it.
| eFilter | the GetType of filter that should be created. |
| PdfOutputStream * PoDoFo::PdfFilterFactory::CreateDecodeStream | ( | const TVecFilters & | filters, |
| PdfOutputStream * | pStream, | ||
| const PdfDictionary * | pDictionary = NULL |
||
| ) | [static] |
Create a PdfOutputStream that applies a list of filters on all data written to it.
| filters | a list of filters |
| pStream | write all data to this PdfOutputStream after it has been decoded. |
| pDictionary | pointer to a dictionary that might contain additional parameters for decoding the stream. CreateDecodeStream will look for a key named DecodeParms in this dictionary and pass the information found in this dictionary to the filters. |
| 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.
| filters | a list of filters |
| pStream | write all data to this PdfOutputStream after it has been encoded. |
| TVecFilters PoDoFo::PdfFilterFactory::CreateFilterList | ( | const PdfObject * | pObject | ) | [static] |
The passed PdfObject has to be a dictionary with a Filters key, an array of filter names or a filter name.
| pObject | must define a list of filters. |
| EPdfFilter PoDoFo::PdfFilterFactory::FilterNameToType | ( | const PdfName & | name | ) | [static] |
Converts a filter name to the corresponding enum
| name | of the filter without leading |
| const char * PoDoFo::PdfFilterFactory::FilterTypeToName | ( | EPdfFilter | eFilter | ) | [static] |
Converts a filter type enum to the corresponding PdfName
| eFilter | a filter type |
1.7.3