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

Annots attribute should contain indirect references #15

Closed
Tracked by #2421
freundTech opened this issue Jul 24, 2023 · 0 comments · Fixed by #26
Closed
Tracked by #2421

Annots attribute should contain indirect references #15

freundTech opened this issue Jul 24, 2023 · 0 comments · Fixed by #26
Labels
bug Something isn't working

Comments

@freundTech
Copy link

freundTech commented Jul 24, 2023

According to the pdf 1.7 standard (7.7.3.2, Table 30) the Annots attribute in a Page dictionary should contain indirect references, however this library directly puts the annotation dictionaries into the page dictionary.

Most (all?) pdf readers seem to deal fine with the direct references, however when looking into what would be needed to support interactive forms in pdfs (typst/typst#1765) I noticed that in this case annotation dictionaries need to be referenced from multiple places at once (the page on which they are placed and the form field which they represent).
This is only possible with indirect references.

Note that this change would require an backwards-incompatible API change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants