PoDoFo 0.9.6
|
#include <PdfFilter.h>
Static Public Member Functions | |
static 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, bool bSupportShortNames=true) |
static const char * | FilterTypeToName (EPdfFilter eFilter) |
static TVecFilters | CreateFilterList (const PdfObject *pObject) |
A factory to create a filter object for a filter type (as GetType() gives) from the EPdfFilter enum. All filters should be created using this factory.
|
static |
Create a filter from an enum.
Ownership is transferred to the caller, whom should delete non-NULL PdfFilter instance, when no longer needed.
eFilter | return value of GetType() for filter to be created |
|
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 stream decoding. This method will look for a key named DecodeParms in this dictionary and pass the information found in that dictionary to the filters. |
|
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 |
|
static |
The passed PdfObject has to be a dictionary with a Filters key, a (possibly empty) array of filter names or a filter name.
pObject | must define a filter or list of filters (can be empty, although then you should use TVecFilters' default) |
|
static |
Converts a filter name to the corresponding enum
name | of the filter without leading |
bSupportShortNames | The PDF Reference supports several short names for filters (e.g. AHx for AsciiHexDecode), if true support for these short names will be enabled. This is often used in inline images. |
|
static |
Converts a filter type enum to the corresponding PdfName
eFilter | a filter type |