mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Merge pull request #18990 from Snuffleupagus/ensure-structTree-serializable
Ensure that serializing of StructTree-data cannot fail during loading
This commit is contained in:
commit
e5485108ec
2 changed files with 9 additions and 3 deletions
|
@ -707,7 +707,7 @@ class Page {
|
|||
const structTree = await this.pdfManager.ensure(this, "_parseStructTree", [
|
||||
structTreeRoot,
|
||||
]);
|
||||
return structTree.serializable;
|
||||
return this.pdfManager.ensure(structTree, "serializable");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue