Class: PDF::Reader::Filter::Lzw
- Inherits:
-
Object
- Object
- PDF::Reader::Filter::Lzw
- Defined in:
- lib/pdf/reader/filter/lzw.rb
Overview
implementation of the LZW stream filter
Instance Method Summary collapse
-
#filter(data) ⇒ Object
Decode the specified data with the LZW compression algorithm.
-
#initialize(options = {}) ⇒ Lzw
constructor
A new instance of Lzw.
Constructor Details
#initialize(options = {}) ⇒ Lzw
Returns a new instance of Lzw.
7 8 9 |
# File 'lib/pdf/reader/filter/lzw.rb', line 7 def initialize( = {}) = end |
Instance Method Details
#filter(data) ⇒ Object
Decode the specified data with the LZW compression algorithm
13 14 15 16 |
# File 'lib/pdf/reader/filter/lzw.rb', line 13 def filter(data) data = PDF::Reader::LZW.decode(data) Depredict.new().filter(data) end |