Skip to main content

Module filter

Module filter 

Source
Expand description

Stream filters (§7.4): Flate, LZW, ASCIIHex, ASCII85, RunLength and the predictor functions that Flate/LZW payloads may be wrapped in.

Decoding is pure: decode_chain takes bytes and returns bytes, so a filter can be tested without a document. Resolving indirect /Filter, /DecodeParms or /Length entries is crate::Document’s job.

Structs§

FilterSpec
One entry of the filter chain: the filter plus its /DecodeParms.
Predictor
/DecodeParms predictor settings, with the defaults from §7.4.4.4.

Enums§

Filter
A filter named by /Filter.

Functions§

decode_chain
Apply a filter chain in order: the first /Filter is the outermost.
decode_filter
Apply one filter, then its predictor when the filter has one.