@syncfusion/ej2-pdf 24.2.5 → 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.
- package/CHANGELOG.md +16 -0
- package/dist/ej2-pdf.umd.min.js +2 -2
- package/dist/ej2-pdf.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf.es2015.js +20 -6
- package/dist/es6/ej2-pdf.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf.es5.js +20 -6
- package/dist/es6/ej2-pdf.es5.js.map +1 -1
- package/dist/global/ej2-pdf.min.js +2 -2
- package/dist/global/ej2-pdf.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/pdf/core/import-export/json-document.js +9 -1
- package/src/pdf/core/pdf-cross-reference.js +11 -5
package/dist/es6/ej2-pdf.es5.js
CHANGED
|
@@ -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
|
-
|
|
40934
|
-
|
|
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
|
-
|
|
40943
|
-
|
|
40947
|
+
catch (ex) {
|
|
40948
|
+
throw new BaseException('Invalid cross reference', 'InvalidXRef');
|
|
40949
|
+
}
|
|
40944
40950
|
}
|
|
40945
40951
|
if (!hasRoot) {
|
|
40946
40952
|
if (!recoveryMode) {
|
|
@@ -46604,6 +46610,14 @@ var _JsonDocument = /** @__PURE__ @class */ (function (_super) {
|
|
|
46604
46610
|
case 'ca':
|
|
46605
46611
|
this._writeAttributeString(key.toLowerCase(), primitive);
|
|
46606
46612
|
break;
|
|
46613
|
+
case 'CustomData':
|
|
46614
|
+
if (primitive && primitive.length > 2 && primitive.startsWith('{') && primitive.endsWith('}')) {
|
|
46615
|
+
this._table.set(key, primitive);
|
|
46616
|
+
}
|
|
46617
|
+
else {
|
|
46618
|
+
this._writeAttributeString(key, primitive);
|
|
46619
|
+
}
|
|
46620
|
+
break;
|
|
46607
46621
|
default:
|
|
46608
46622
|
this._writeAttributeString(key, primitive);
|
|
46609
46623
|
break;
|
|
@@ -47257,7 +47271,7 @@ var _JsonDocument = /** @__PURE__ @class */ (function (_super) {
|
|
|
47257
47271
|
}
|
|
47258
47272
|
break;
|
|
47259
47273
|
case 'customdata':
|
|
47260
|
-
_this._addString(dictionary, 'CustomData', value);
|
|
47274
|
+
_this._addString(dictionary, 'CustomData', typeof value === 'string' ? value : JSON.stringify(value));
|
|
47261
47275
|
break;
|
|
47262
47276
|
case 'appearance':
|
|
47263
47277
|
_this._addAppearanceData(dictionary, value);
|