Replies: 2 comments
-
|
Hello - I'm attempting a very similar task and getting the same results. I am using node 22.15.0, @napi-rs/canvas 0.1.70, pdfjs-dist 5.2.133. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This problem has been resolved since 0.1.73, thanks to @Brooooooklyn 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a weird bug trying to save each page of a pdf as png. There is an example in the pdf.js library on this task, and it works fine in plain node (https://github.com/mozilla/pdf.js/blob/master/examples/node/pdf2png/pdf2png.mjs).
Anyway, the slighlty same code doesn't draw the images included in the pdf in the output pngs. I know that this could seem more related to pdf.js, but the fact that the rest of the pdf is correctly processed makes me think that it's more of a rendering issue.
For reference, this is my code:
Using this code with a pdf like this produces a white image, since the content is raster only.
I'm using electron v33 with node v20.18.0, napi-rs/canvas v0.1.64 on windows 11. Has anyone had similar issues?
Beta Was this translation helpful? Give feedback.
All reactions