@syncfusion/ej2-pdf-export 22.2.5 → 23.1.39
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/.gitleaksignore +5 -1
- package/CHANGELOG.md +8 -0
- package/dist/ej2-pdf-export.min.js +3 -3
- package/dist/ej2-pdf-export.umd.min.js +3 -3
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +9 -38
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +9 -46
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +3 -3
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +7 -7
- package/src/implementation/general/functions/pdf-sampled-function.js +1 -0
- package/src/implementation/graphics/fonts/unicode-true-type-font.js +5 -5
- package/src/implementation/graphics/images/image-decoder.js +1 -1
- package/src/implementation/primitives/pdf-dictionary.d.ts +1 -1
- package/src/implementation/primitives/pdf-dictionary.js +1 -1
- package/src/implementation/primitives/pdf-stream.d.ts +0 -20
- package/src/implementation/primitives/pdf-stream.js +1 -39
package/dist/global/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 -
|
|
3
|
+
* version : 23.1.39
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-pdf-export@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-pdf-export@
|
|
3
|
+
"_id": "@syncfusion/ej2-pdf-export@23.1.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-oS/pB4a+XXB8FR4B6hMtIaUaMhf70Oqbhx2pWu9dP2FOBm9Ce8lNjxV786oZHATAXuRUTaCdZjSdeu0JH4olkQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pdf-export",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"/@syncfusion/ej2-pivotview",
|
|
29
29
|
"/@syncfusion/ej2-treemap"
|
|
30
30
|
],
|
|
31
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-
|
|
32
|
-
"_shasum": "
|
|
31
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-23.1.36.tgz",
|
|
32
|
+
"_shasum": "e6ba03c9ca689767583b498010cd65bffc76a1a2",
|
|
33
33
|
"_spec": "@syncfusion/ej2-pdf-export@*",
|
|
34
|
-
"_where": "/jenkins/workspace/elease-
|
|
34
|
+
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
35
35
|
"author": {
|
|
36
36
|
"name": "Syncfusion Inc."
|
|
37
37
|
},
|
|
38
38
|
"bundleDependencies": false,
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@syncfusion/ej2-compression": "~
|
|
40
|
+
"@syncfusion/ej2-compression": "~23.1.36"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Syncfusion TypeScript Component",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"module": "./index.js",
|
|
49
49
|
"name": "@syncfusion/ej2-pdf-export",
|
|
50
50
|
"typings": "index.d.ts",
|
|
51
|
-
"version": "
|
|
51
|
+
"version": "23.1.39",
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
54
54
|
}
|
|
@@ -60,6 +60,7 @@ var PdfSampledFunction = /** @class */ (function (_super) {
|
|
|
60
60
|
*/
|
|
61
61
|
PdfSampledFunction.prototype.setSizeAndValues = function (sizes, samples) {
|
|
62
62
|
var s = (this.dictionary);
|
|
63
|
+
s.isResource = true;
|
|
63
64
|
this.dictionary.items.setValue(this.mDictionaryProperties.size, new PdfArray(sizes));
|
|
64
65
|
this.dictionary.items.setValue(this.mDictionaryProperties.bitsPerSample, new PdfNumber(8));
|
|
65
66
|
s.writeBytes(samples);
|
|
@@ -190,7 +190,7 @@ var UnicodeTrueTypeFont = /** @class */ (function () {
|
|
|
190
190
|
*/
|
|
191
191
|
UnicodeTrueTypeFont.prototype.createDescendantFont = function () {
|
|
192
192
|
// Set property used to clone Font every time
|
|
193
|
-
this.descendantFont.
|
|
193
|
+
this.descendantFont.isResource = true;
|
|
194
194
|
this.descendantFont.descendantFontBeginSave = new SaveDescendantFontEventHandler(this);
|
|
195
195
|
this.descendantFont.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
|
|
196
196
|
this.descendantFont.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.cIDFontType2));
|
|
@@ -209,7 +209,7 @@ var UnicodeTrueTypeFont = /** @class */ (function () {
|
|
|
209
209
|
var descriptor = new PdfDictionary();
|
|
210
210
|
var metrics = this.ttfReader.metrics;
|
|
211
211
|
// Set property used to clone Font every time
|
|
212
|
-
descriptor.
|
|
212
|
+
descriptor.isResource = true;
|
|
213
213
|
descriptor.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.fontDescriptor));
|
|
214
214
|
descriptor.items.setValue(this.dictionaryProperties.fontName, new PdfName(this.subsetName));
|
|
215
215
|
descriptor.items.setValue(this.dictionaryProperties.flags, new PdfNumber(this.getDescriptorFlags()));
|
|
@@ -240,7 +240,7 @@ var UnicodeTrueTypeFont = /** @class */ (function () {
|
|
|
240
240
|
*/
|
|
241
241
|
UnicodeTrueTypeFont.prototype.createFontDictionary = function () {
|
|
242
242
|
// Set property used to clone Font every time
|
|
243
|
-
this.fontDictionary.
|
|
243
|
+
this.fontDictionary.isResource = true;
|
|
244
244
|
this.fontDictionary.fontDictionaryBeginSave = new SaveFontDictionaryEventHandler(this);
|
|
245
245
|
this.fontDictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
|
|
246
246
|
this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont, new PdfName(this.subsetName));
|
|
@@ -409,7 +409,7 @@ var UnicodeTrueTypeFont = /** @class */ (function () {
|
|
|
409
409
|
}
|
|
410
410
|
builder += this.cmapSuffix;
|
|
411
411
|
this.cmap.clearStream();
|
|
412
|
-
this.cmap.
|
|
412
|
+
this.cmap.isResource = true;
|
|
413
413
|
this.cmap.write(builder);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -423,7 +423,7 @@ var UnicodeTrueTypeFont = /** @class */ (function () {
|
|
|
423
423
|
this.ttfReader.setOffset(0);
|
|
424
424
|
fontProgram = this.ttfReader.readFontProgram(this.usedChars);
|
|
425
425
|
this.fontProgram.clearStream();
|
|
426
|
-
this.fontProgram.
|
|
426
|
+
this.fontProgram.isResource = true;
|
|
427
427
|
this.fontProgram.writeBytes(fontProgram);
|
|
428
428
|
};
|
|
429
429
|
/**
|
|
@@ -283,7 +283,7 @@ var ImageDecoder = /** @class */ (function () {
|
|
|
283
283
|
if (this.mFormat === ImageFormat.Jpeg) {
|
|
284
284
|
var tempArrayBuffer = this.imageData.internalBuffer.length;
|
|
285
285
|
this.imageStream = new PdfStream();
|
|
286
|
-
this.imageStream.
|
|
286
|
+
this.imageStream.isResource = true;
|
|
287
287
|
var tempString = '';
|
|
288
288
|
var decodedString = '';
|
|
289
289
|
for (var i = 0; i < this.imageDataAsNumberArray.byteLength; i++) {
|
|
@@ -54,16 +54,6 @@ export declare class PdfStream extends PdfDictionary {
|
|
|
54
54
|
* @private
|
|
55
55
|
*/
|
|
56
56
|
private bCompress;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
* @private
|
|
60
|
-
*/
|
|
61
|
-
private isImageStream;
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
* @private
|
|
65
|
-
*/
|
|
66
|
-
private isFontStream;
|
|
67
57
|
/**
|
|
68
58
|
* Event. Raise `before the object saves`.
|
|
69
59
|
* @private
|
|
@@ -89,16 +79,6 @@ export declare class PdfStream extends PdfDictionary {
|
|
|
89
79
|
* @private
|
|
90
80
|
*/
|
|
91
81
|
internalStream: string[];
|
|
92
|
-
/**
|
|
93
|
-
* Gets or sets 'is image' flag.
|
|
94
|
-
* @private
|
|
95
|
-
*/
|
|
96
|
-
isImage: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Gets or sets 'is font' flag.
|
|
99
|
-
* @private
|
|
100
|
-
*/
|
|
101
|
-
isFont: boolean;
|
|
102
82
|
/**
|
|
103
83
|
* Gets or sets `compression` flag.
|
|
104
84
|
* @private
|
|
@@ -47,16 +47,6 @@ var PdfStream = /** @class */ (function (_super) {
|
|
|
47
47
|
* @private
|
|
48
48
|
*/
|
|
49
49
|
_this.bCompress = true;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
* @private
|
|
53
|
-
*/
|
|
54
|
-
_this.isImageStream = false;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
* @private
|
|
58
|
-
*/
|
|
59
|
-
_this.isFontStream = false;
|
|
60
50
|
if (typeof dictionary !== 'undefined' || typeof data !== 'undefined') {
|
|
61
51
|
_this.dataStream2 = [];
|
|
62
52
|
_this.dataStream2 = data;
|
|
@@ -85,34 +75,6 @@ var PdfStream = /** @class */ (function (_super) {
|
|
|
85
75
|
enumerable: true,
|
|
86
76
|
configurable: true
|
|
87
77
|
});
|
|
88
|
-
Object.defineProperty(PdfStream.prototype, "isImage", {
|
|
89
|
-
/**
|
|
90
|
-
* Gets or sets 'is image' flag.
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
get: function () {
|
|
94
|
-
return this.isImageStream;
|
|
95
|
-
},
|
|
96
|
-
set: function (value) {
|
|
97
|
-
this.isImageStream = value;
|
|
98
|
-
},
|
|
99
|
-
enumerable: true,
|
|
100
|
-
configurable: true
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(PdfStream.prototype, "isFont", {
|
|
103
|
-
/**
|
|
104
|
-
* Gets or sets 'is font' flag.
|
|
105
|
-
* @private
|
|
106
|
-
*/
|
|
107
|
-
get: function () {
|
|
108
|
-
return this.isFontStream;
|
|
109
|
-
},
|
|
110
|
-
set: function (value) {
|
|
111
|
-
this.isFontStream = value;
|
|
112
|
-
},
|
|
113
|
-
enumerable: true,
|
|
114
|
-
configurable: true
|
|
115
|
-
});
|
|
116
78
|
Object.defineProperty(PdfStream.prototype, "compress", {
|
|
117
79
|
/**
|
|
118
80
|
* Gets or sets `compression` flag.
|
|
@@ -262,7 +224,7 @@ var PdfStream = /** @class */ (function (_super) {
|
|
|
262
224
|
for (var i = 0; i < this.data.length; i++) {
|
|
263
225
|
data = data + this.data[i];
|
|
264
226
|
}
|
|
265
|
-
if (data.length > 1 && !this.
|
|
227
|
+
if (data.length > 1 && !this.isResource) {
|
|
266
228
|
data = 'q\r\n' + data + 'Q\r\n';
|
|
267
229
|
}
|
|
268
230
|
data = this.compressContent(data, writer);
|