Sha256: 6e07369e7c6563afe083cf9662c33a241d893dabe02f42c5832c200660d869fe
Contents?: true
Size: 561 Bytes
Versions: 24
Compression:
Stored size: 561 Bytes
Contents
module PDF class Inspector class Page < Inspector attr_reader :pages def initialize @pages = [] end def begin_page(params) @pages << {:size => params[:MediaBox][-2..-1], :strings => []} end def show_text(*params) @pages.last[:strings] << params[0] end def show_text_with_positioning(*params) # ignore kerning information @pages.last[:strings] << params[0].reject { |e| Numeric === e }.join end end end end
Version data entries
24 entries across 24 versions & 10 rubygems