jrmuizel / pdf-extract

A rust library for extracting content from pdfs
364 stars 73 forks source link

panic on unwrap on a None value #66

Open blankenshipz opened 11 months ago

blankenshipz commented 11 months ago

I'm getting a strange panic when reading an arbitrary PDF file

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pdf-extract-0.6.5/src/lib.rs:955:37

I can't find any other issues that seem to be in this same area of the code; is the PDF malformed?

jrmuizel commented 10 months ago

Can you link to or attach the pdf?

scotow commented 10 months ago

I'm getting the same issue but unfortunately I can't share the PDF that I'm using for privacy reason. @jrmuizel, I reached you over Discord.

jrmuizel commented 10 months ago

@scotow I've fixed your PDF in deb3aea57ab8dd75212236d5b191763d0f6d4e10

scotow commented 10 months ago

Thanks. Seems to be working. Do you plan to publish a new version to crates.io with this fix anytime soon?

jrmuizel commented 10 months ago

I published 0.7.1