-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Rendering issue where image content is blacked out #212
Comments
This is still a problem in v3.17.0. |
This might be the same or similar issue that I am experiencing. When I run the example.pdf file through the pdf_image_render.go example, it creates a png image with a square-ish shaped blob at the top left corner. I ran the OP's pdf through as well and got something different than the OP stated, but still not expected. Attached for convenience. |
Update: pdf was rendering in my code base just fine after upgrading go to version 1.14 and upgrading unidoc/unipdf to v3.18.0. I did not try it in the unipdf-example. |
The originally posted file still having a problem in v3.18.0. |
Second update: pdf is rendering, but formatting is off and words are different sizes or cut off. PDF file and PNG image rendered through unipdf-examples pdf_image_render attached for reference I ran the OP's PDF through as well and got the same result as OP. I am using Go version 1.14 and unipdf v3.19.0. |
Hi @sarah-schmidt, We released new UniPDF version v3.53.0 https://github.com/unidoc/unipdf/releases/tag/v3.53.0, could you try to update the UniPDF version and see if this issue is resolved? Best regards, |
Hi @sampila
v3-51-0.pdf |
Hi @dillonkh From version v3.52.0, we changes the default encoder to DCTEncoder, to solve this, you can set the encoder into flate encoder, the code will be like this
Could you try to run the code and see the results? |
@sampila that did the trick! 🙌 |
Hi @dillonkh, As this is resolved, we closing this issue for now. Best regards |
Description
When rendering the attached PDF, the raster image is blacked out, as can be seen below.
Expected Behavior
Expected rendering:
Actual Behavior
I used the PDF rendering example: https://github.com/unidoc/unipdf-examples/blob/render/render/pdf_image_render.go to render the file 004_text_display.pdf and got:
Attachments
004_text_display.pdf
The text was updated successfully, but these errors were encountered: