Skip to content

Annots attribute should contain indirect references #15

@freundTech

Description

@freundTech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions