1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Merge pull request #19574 from Snuffleupagus/autolinking-xfa-disable

Don't attempt to use auto-linking in XFA documents (PR 19110 follow-up)
This commit is contained in:
Jonas Jenwald 2025-02-28 16:30:45 +01:00 committed by GitHub
commit 6e1cfa20d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1064,7 +1064,7 @@ class PDFPageView extends BasePDFPageView {
if (this.annotationLayer) {
await this.#renderAnnotationLayer();
if (this.#enableAutoLinking && this.annotationLayer) {
if (this.#enableAutoLinking && this.annotationLayer && this.textLayer) {
await this.#injectLinkAnnotations(textLayerPromise);
}
}