Don't attempt to use auto-linking in XFA documents (PR 19110 follow-up)
Auto-linking requires a normal textLayer which XFA documents obviously don't have, and currently XFA documents cause "pointless" error messages to be logged in the console.
This commit is contained in:
parent
50c573d16d
commit
7273db2e35
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user