Class PDF::Reader::Filter
In: lib/pdf/reader/filter.rb
Parent: Object

Various parts of a PDF file can be passed through a filter before being stored to provide support for features like compression and encryption. This class is for decoding that content.

Currently only 1 filter type is supported. Hopefully support for others will be added in the future.

Methods

ascii85   asciihex   filter   flate   new  

Public Class methods

creates a new filter for decoding content.

Filters that are only used to encode image data are accepted, but the data is returned untouched. At this stage PDF::Reader has no need to decode images.

Public Instance methods

Decode the specified data using the Ascii85 algorithm. Relies on the AScii85 rubygem.

Decode the specified data using the AsciiHex algorithm.

attempts to decode the specified data with the current filter

Filters that are only used to encode image data are accepted, but the data is returned untouched. At this stage PDF::Reader has no need to decode images.

Decode the specified data with the Zlib compression algorithm

[Validate]