@syncfusion/ej2-pdf 24.2.7 → 24.2.8

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.
@@ -40929,18 +40929,24 @@ var _PdfCrossReference = /** @__PURE__ @class */ (function () {
40929
40929
  }
40930
40930
  }
40931
40931
  var hasRoot = false;
40932
+ var root;
40932
40933
  try {
40933
- var root = trailerDictionary.get('Root');
40934
- if (root) {
40934
+ root = trailerDictionary.get('Root');
40935
+ }
40936
+ catch (e) {
40937
+ throw new BaseException('Invalid cross reference', 'XRefParseException');
40938
+ }
40939
+ if (root) {
40940
+ try {
40935
40941
  var pagesEntry = root.get('Pages');
40936
40942
  if (pagesEntry) {
40937
40943
  this._root = root;
40938
40944
  hasRoot = true;
40939
40945
  }
40940
40946
  }
40941
- }
40942
- catch (ex) {
40943
- throw new BaseException('Invalid cross reference', 'InvalidXRef');
40947
+ catch (ex) {
40948
+ throw new BaseException('Invalid cross reference', 'InvalidXRef');
40949
+ }
40944
40950
  }
40945
40951
  if (!hasRoot) {
40946
40952
  if (!recoveryMode) {