omkar-mohanty / vortex

A tool to extract images from pdf files
MIT License
52 stars 7 forks source link

Fails with some pdfs #1

Open Arqib opened 1 year ago

Arqib commented 1 year ago

Vortex is not working for some pdfs. Here is one error:

Error: Try { file: "/home/waweru/.cargo/git/checkouts/pdf-2fe412da58dbfdde/340b35c/pdf/src/file.rs", line: 427, column: 23, context: Context([]), source: FromPrimitive { typ: "RcRef < Catalog >", field: "root", source: Shared { source: Try { file: "/home/waweru/.cargo/git/checkouts/pdf-2fe412da58dbfdde/340b35c/pdf/src/file.rs", line: 149, column: 27, context: Context([]), source: UnspecifiedXRefEntry { id: 974737 } } } } }

omkar-mohanty commented 1 year ago

This seems to be an issue with the pdf crate. Can you provide the pdf file if possible to reproduce the error ?

Arqib commented 1 year ago

ooc.pdf There it is.