Merge pull request #15462 from calixteman/update_xfa

[XFA] - Avoid an exception when zooming on a XFA
This commit is contained in:
calixteman 2022-09-19 22:22:16 +02:00 committed by GitHub
commit 5b4a44dbab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ class PDFPageView {
let error = null;
try {
const result = await this.xfaLayer.render(this.viewport, "display");
if (this.textHighlighter) {
if (result?.textDivs && this.textHighlighter) {
this._buildXfaTextContentItems(result.textDivs);
}
} catch (ex) {