mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #15462 from calixteman/update_xfa
[XFA] - Avoid an exception when zooming on a XFA
This commit is contained in:
commit
5b4a44dbab
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue