diff --git a/src/core/annotation.js b/src/core/annotation.js index 9d0baf1d7..36ffd9f7b 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -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; diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index bed5dd704..02bae0c28 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -632,3 +632,4 @@ !bug1669097.pdf !issue17671.pdf !bug1868759.pdf +!issue17730.pdf diff --git a/test/pdfs/issue17730.pdf b/test/pdfs/issue17730.pdf new file mode 100644 index 000000000..ab427d064 Binary files /dev/null and b/test/pdfs/issue17730.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index 37f54ea0b..c1fe937a7 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -9746,5 +9746,13 @@ "firstPage": 2, "lastPage": 2, "type": "eq" + }, + { + "id": "issue17730", + "file": "pdfs/issue17730.pdf", + "md5": "ac9a14a75457468bde78204ca75701d6", + "rounds": 1, + "annotations": true, + "type": "eq" } ]