On #325 (feature/pdfua-1-support) with #389, importing a tagged PDF clones its structure tree, including its Link elements. The imported link annotations then get a second, new Link element each at the end of the Document, which isn't matched to the cloned one. The cloned Link is dropped as empty, so the link is read at the end of the page rather than where it appears.
Expected. Match each imported annotation to the Link element that references it in the source (through its /StructParent and the source ParentTree), and attach the annotation's OBJR there.
Found in the #389 audit.
On #325 (
feature/pdfua-1-support) with #389, importing a tagged PDF clones its structure tree, including itsLinkelements. The imported link annotations then get a second, newLinkelement each at the end of the Document, which isn't matched to the cloned one. The cloned Link is dropped as empty, so the link is read at the end of the page rather than where it appears.Expected. Match each imported annotation to the
Linkelement that references it in the source (through its/StructParentand the source ParentTree), and attach the annotation'sOBJRthere.Found in the #389 audit.