You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue on few PDFs - I get PDF::Reader::MalformedPDFError: Error occured while inflating a compressed stream when i try to read the Page text 'reader.pages[1].text'.
Here is the complete error details. Can someone please help here?
Details:
<PDF::Reader::MalformedPDFError: Error occured while inflating a compressed stream (Zlib::DataError: invalid code lengths set)> Additional Details: C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/filter/flate.rb:34:in rescue in filter' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/filter/flate.rb:17:infilter' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:63:in block in unfiltered_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:in each_with_index' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:inunfiltered_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/font.rb:136:in extract_base_info' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/font.rb:47:ininitialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:384:in new' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:384:inblock in build_fonts' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:inmap' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:in build_fonts' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:28:ininitialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_text_receiver.rb:42:in new' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_text_receiver.rb:42:inpage=' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:154:in block in callback' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:153:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:153:in callback' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:104:inwalk' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:75:in text' C:/Tellus/Utils/UtilsBB.rb:32:inVerifyPDFDownloaded'
Regards,
Ramya
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the wonderful gem.
I am encountering an issue on few PDFs - I get PDF::Reader::MalformedPDFError: Error occured while inflating a compressed stream when i try to read the Page text 'reader.pages[1].text'.
Here is the complete error details. Can someone please help here?
Details:
<PDF::Reader::MalformedPDFError: Error occured while inflating a compressed stream (Zlib::DataError: invalid code lengths set)> Additional Details: C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/filter/flate.rb:34:in
rescue in filter' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/filter/flate.rb:17:in
filter' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:63:inblock in unfiltered_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:in
each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:ineach_with_index' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/stream.rb:62:in
unfiltered_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/font.rb:136:inextract_base_info' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/font.rb:47:in
initialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:384:innew' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:384:in
block in build_fonts' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:in
map' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:383:inbuild_fonts' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_state.rb:28:in
initialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_text_receiver.rb:42:innew' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page_text_receiver.rb:42:in
page=' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:154:inblock in callback' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:153:in
each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:153:incallback' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:104:in
walk' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pdf-reader-1.3.3/lib/pdf/reader/page.rb:75:intext' C:/Tellus/Utils/UtilsBB.rb:32:in
VerifyPDFDownloaded'Regards,
Ramya
The text was updated successfully, but these errors were encountered: