Merge pull request #15462 from calixteman/update_xfa
[XFA] - Avoid an exception when zooming on a XFA
This commit is contained in:
commit
5b4a44dbab
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user