Skip to content
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

Order of objects in generated PDF file is not always consistent #98

Closed
andreasrosdal opened this issue Aug 29, 2018 · 1 comment
Closed

Comments

@andreasrosdal
Copy link
Contributor

andreasrosdal commented Aug 29, 2018

@pvandenbroucke reported in this issue: "A important issue is that visual generation doesn't guaranteed the objects order in the pdf file. I didn't find the root cause."
Details about the bug can also be found here: #86 (comment)

Pull-request to reproduce the problem: #97

@pvandenbroucke Please supply more details if you have. This bug should get the highest priority to be fixed. Pull-requests welcome!

@pvandenbroucke
Copy link
Contributor

From my analysis, the problem can happen when a visible signature is added. I added a loop in the unit test because it doesn't always occur.

If you check the files in the comment, you can see that XObjects 43 and 47 are inverted.

IMO, the problem (or a part of it) is the used Map formXObjects in the class PdfWriter. The iteration order is not guaranteed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants