Closed echarrod closed 3 years ago
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/
@echarrod Thanks for your well written report. Your conclusion seems likely. We will take a look at this.
Can confirm this issue disappears after upgrading to 3.19.0 - https://github.com/unidoc/unipdf/releases/tag/v3.19.0 Thanks
Description
After updating from 3.7.0 -> 3.13.0, when a number of conditions are met, the whole PDF becomes warped. From my own investigations it looks like: when calling creator.Draw on any of the 3 elements I am drawing onto the PDF (attached below)
From change notes for 3.12.3, looks like this might be something to do with it?
Expected Behavior
Image is optimised, PDF stays the same visually
Actual Behavior
Steps to reproduce the behavior: 1) Open the attached project 2) Run go test ./... 3) Inspect the produced PDF in /testdata 4) Change any of the criteria above (e.g. change unidoc version to 3.12.2) 5) Run test again - this is how the PDF should look
Input file:![image](https://user-images.githubusercontent.com/1381991/100450766-2057cd80-30ae-11eb-8227-c046875d2a86.png)
Output file:![image](https://user-images.githubusercontent.com/1381991/100468691-d500e780-30cc-11eb-977a-fa78f5e5537f.png)
Attachments
Input: scanned_pdf_rotation_optimisation_check.pdf
Output - scanned_pdf_rotation_optimisation_check_443179483.pdf
I will email the code snippet separately