class PDF::Reader::Filter::Lzw
implementation of the LZW
stream filter
Public Class Methods
new(options = {})
click to toggle source
# File lib/pdf/reader/filter/lzw.rb, line 7 def initialize(options = {}) @options = options end
Public Instance Methods
filter(data)
click to toggle source
Decode the specified data with the LZW
compression algorithm
# File lib/pdf/reader/filter/lzw.rb, line 13 def filter(data) data = PDF::Reader::LZW.decode(data) Depredict.new(@options).filter(data) end