Closed piegamesde closed 3 years ago
Wait, what does this crate actually do? Should I move this bug to pathfinder instead?
If a PDF does not render, here is the correct place to report it. Currently the code for drawing is here: https://github.com/pdf-rs/pdf_render/blob/master/render/src/renderstate.rs#L660
Can you share the problem files?
That file uses the CCITTFaxDecode
filter which is not implemented yet. Lets see how difficult it is...
At least it fails now ;)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Other { msg: "Unimplemented @ pdf-3ef1c528a9b91eec/37e9966/pdf/src/enc.rs:336" }', pdf_render/view/src/lib.rs:47:92
Please run cargo update
and try again.
The file above works here, and I don't think I forgot to push anything to github… If your pdf_render repo is up to date and the pdf dependency is updated, it should work.
Please run cargo update and try again.
It works now. Maybe consider removing Cargo.lock
from the gitignore?
I get a panic on the third page now though: EOF', pdf_render/view/src/lib.rs:47:92
I can reproduce that error. Needs digging.
git pull
&& cargo update -p fax
There appears to be some bug (related to pathfinder?) that causes it to hang sometimes.
The fix is included in pdf 0.7.2. Closing now. Feel free to reopen if you run into other cases.
This happens with multiple files. I'm testing with PDF files that contain embedded raster images. Some of them seem to work fine though.