[XFA] - Avoid an exception when zooming on a XFA

This commit is contained in:
Calixte Denizet 2022-09-19 21:31:52 +02:00
parent d262ca314d
commit 403aa5cfa0

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) {