@chialab/pdfjs-lib 1.0.0-alpha.32 → 1.0.0-alpha.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42638,12 +42638,14 @@ async function createTextLayerV2(page, {
42638
42638
  }
42639
42639
  }
42640
42640
  closeTextItem();
42641
- decorateStructTree(
42642
- structTree,
42643
- rootContainer,
42644
- graphics,
42645
- annotations
42646
- );
42641
+ if (structTree) {
42642
+ decorateStructTree(
42643
+ structTree,
42644
+ rootContainer,
42645
+ graphics,
42646
+ annotations
42647
+ );
42648
+ }
42647
42649
  return rootContainer;
42648
42650
  }
42649
42651
 
@@ -41291,12 +41291,14 @@ async function createTextLayerV2(page, {
41291
41291
  }
41292
41292
  }
41293
41293
  closeTextItem();
41294
- decorateStructTree(
41295
- structTree,
41296
- rootContainer,
41297
- graphics,
41298
- annotations
41299
- );
41294
+ if (structTree) {
41295
+ decorateStructTree(
41296
+ structTree,
41297
+ rootContainer,
41298
+ graphics,
41299
+ annotations
41300
+ );
41301
+ }
41300
41302
  return rootContainer;
41301
41303
  }
41302
41304
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chialab/pdfjs-lib",
3
3
  "description": "A custom Mozilla's PDF.js build with better Node support and extras.",
4
- "version": "1.0.0-alpha.32",
4
+ "version": "1.0.0-alpha.33",
5
5
  "type": "module",
6
6
  "author": "Chialab <dev@chialab.it>",
7
7
  "license": "MIT",