Always add links in the annotation layer

Fixes #17730.
This commit is contained in:
Calixte Denizet 2024-02-27 22:19:37 +01:00
parent 06aef89502
commit e0b843d991
4 changed files with 13 additions and 0 deletions

View File

@ -3684,6 +3684,10 @@ class LinkAnnotation extends Annotation {
const { dict, annotationGlobals } = params;
this.data.annotationType = AnnotationType.LINK;
// A link is never rendered on the main canvas so we must render its HTML
// version.
this.data.noHTML = false;
const quadPoints = getQuadPoints(dict, this.rectangle);
if (quadPoints) {
this.data.quadPoints = quadPoints;

View File

@ -632,3 +632,4 @@
!bug1669097.pdf
!issue17671.pdf
!bug1868759.pdf
!issue17730.pdf

BIN
test/pdfs/issue17730.pdf Normal file

Binary file not shown.

View File

@ -9746,5 +9746,13 @@
"firstPage": 2,
"lastPage": 2,
"type": "eq"
},
{
"id": "issue17730",
"file": "pdfs/issue17730.pdf",
"md5": "ac9a14a75457468bde78204ca75701d6",
"rounds": 1,
"annotations": true,
"type": "eq"
}
]