1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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;