@syncfusion/ej2-pdf 24.1.48 → 24.2.5
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 +8 -1
- package/dist/ej2-pdf.umd.min.js +10 -1
- package/dist/ej2-pdf.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf.es2015.js +62 -54
- package/dist/es6/ej2-pdf.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf.es5.js +62 -54
- package/dist/es6/ej2-pdf.es5.js.map +1 -1
- package/dist/global/ej2-pdf.min.js +10 -1
- package/dist/global/ej2-pdf.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +60 -60
- package/src/pdf/core/annotations/annotation.js +42 -38
- package/src/pdf/core/form/form.js +20 -16
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 24.2.5
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _pdf from '@syncfusion/ej2-pdf';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
2
|
+
"_from": "@syncfusion/ej2-pdf@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-pdf@24.2.3",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-vQG0fDg5tvHuRtT/9uTMa3Orr6hK7VAq1lcYCxbkCPVBWmi1c9drr18BPcByXRDZZLn2rRx/850Oehg3YokBAg==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-pdf",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-pdf@*",
|
|
12
|
+
"name": "@syncfusion/ej2-pdf",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-pdf",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-pdfviewer"
|
|
23
|
+
],
|
|
24
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf/-/ej2-pdf-24.2.3.tgz",
|
|
25
|
+
"_shasum": "5ccb8b9c1e40253e3cf7377bfbc82c7803b5bb53",
|
|
26
|
+
"_spec": "@syncfusion/ej2-pdf@*",
|
|
27
|
+
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Syncfusion Inc."
|
|
30
|
+
},
|
|
31
|
+
"bundleDependencies": false,
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@syncfusion/ej2-base": "~24.2.5",
|
|
34
|
+
"@syncfusion/ej2-compression": "~24.2.3"
|
|
35
|
+
},
|
|
36
|
+
"deprecated": false,
|
|
37
|
+
"description": "Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.",
|
|
38
|
+
"devDependencies": {},
|
|
39
|
+
"es2015": "./dist/es6/ej2-pdf.es5.js",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"ej2",
|
|
42
|
+
"syncfusion",
|
|
43
|
+
"ej2-pdf",
|
|
44
|
+
"web-components",
|
|
45
|
+
"JavaScript",
|
|
46
|
+
"TypeScript",
|
|
47
|
+
"pdf"
|
|
48
|
+
],
|
|
49
|
+
"license": "SEE LICENSE IN license",
|
|
50
|
+
"main": "./dist/ej2-pdf.umd.min.js",
|
|
51
|
+
"module": "./index.js",
|
|
52
|
+
"name": "@syncfusion/ej2-pdf",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/pdf"
|
|
56
|
+
},
|
|
57
|
+
"typings": "index.d.ts",
|
|
58
|
+
"version": "24.2.5",
|
|
59
|
+
"sideEffects": false,
|
|
60
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
61
|
+
}
|
|
@@ -8115,50 +8115,54 @@ var PdfDocumentLinkAnnotation = /** @class */ (function (_super) {
|
|
|
8115
8115
|
referenceArray = referenceValue;
|
|
8116
8116
|
}
|
|
8117
8117
|
}
|
|
8118
|
-
if (referenceArray) {
|
|
8118
|
+
if (referenceArray && (referenceArray[0] instanceof _PdfReference || typeof referenceArray[0] === 'number')) {
|
|
8119
|
+
var document_1 = this._crossReference._document;
|
|
8120
|
+
var index = void 0;
|
|
8119
8121
|
if (referenceArray[0] instanceof _PdfReference) {
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8122
|
+
index = _getPageIndex(document_1, this._crossReference._fetch(referenceArray[0]));
|
|
8123
|
+
}
|
|
8124
|
+
else {
|
|
8125
|
+
index = referenceArray[0];
|
|
8126
|
+
}
|
|
8127
|
+
var page = document_1.getPage(index);
|
|
8128
|
+
if (page) {
|
|
8129
|
+
var mode = referenceArray[1];
|
|
8130
|
+
if (mode.name === 'FitBH' || mode.name === 'FitH') {
|
|
8131
|
+
var top_5 = referenceArray[2];
|
|
8132
|
+
var topValue = (typeof top_5 !== 'undefined' && top_5 !== null) ? (page.size[1] - top_5) : 0;
|
|
8133
|
+
this._destination = new PdfDestination(page, [0, topValue]);
|
|
8134
|
+
if (typeof top_5 === 'undefined' || top_5 === null) {
|
|
8135
|
+
this._destination._setValidation(false);
|
|
8132
8136
|
}
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
if ((typeof left !== 'undefined' && left !== null) || (typeof top_6 !== 'undefined' && top_6 !== null)
|
|
8144
|
-
|| (typeof zoom !== 'undefined' && zoom !== null)) {
|
|
8145
|
-
this._destination._setValidation(false);
|
|
8146
|
-
}
|
|
8137
|
+
}
|
|
8138
|
+
else if (mode.name === 'XYZ') {
|
|
8139
|
+
var left = referenceArray[2];
|
|
8140
|
+
var top_6 = referenceArray[3];
|
|
8141
|
+
var zoom = referenceArray[4];
|
|
8142
|
+
var topValue = (typeof top_6 !== 'undefined' && top_6 !== null) ? (page.size[1] - top_6) : 0;
|
|
8143
|
+
var leftValue = (typeof left !== 'undefined' && left !== null) ? left : 0;
|
|
8144
|
+
this._destination = new PdfDestination(page, [leftValue, topValue]);
|
|
8145
|
+
if (typeof zoom !== 'undefined' && zoom !== null) {
|
|
8146
|
+
this._destination.zoom = zoom;
|
|
8147
8147
|
}
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
var bottom = referenceArray[3];
|
|
8152
|
-
var right = referenceArray[4];
|
|
8153
|
-
var top_7 = referenceArray[5];
|
|
8154
|
-
this._destination = new PdfDestination(page, [left, bottom, right, top_7]);
|
|
8155
|
-
}
|
|
8148
|
+
if ((typeof left !== 'undefined' && left !== null) || (typeof top_6 !== 'undefined' && top_6 !== null)
|
|
8149
|
+
|| (typeof zoom !== 'undefined' && zoom !== null)) {
|
|
8150
|
+
this._destination._setValidation(false);
|
|
8156
8151
|
}
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8152
|
+
}
|
|
8153
|
+
else if (mode.name === 'FitR') {
|
|
8154
|
+
if (referenceArray.length === 6) {
|
|
8155
|
+
var left = referenceArray[2];
|
|
8156
|
+
var bottom = referenceArray[3];
|
|
8157
|
+
var right = referenceArray[4];
|
|
8158
|
+
var top_7 = referenceArray[5];
|
|
8159
|
+
this._destination = new PdfDestination(page, [left, bottom, right, top_7]);
|
|
8160
8160
|
}
|
|
8161
8161
|
}
|
|
8162
|
+
else if (mode.name === 'Fit') {
|
|
8163
|
+
this._destination = new PdfDestination(page);
|
|
8164
|
+
this._destination.mode = PdfDestinationMode.fitToPage;
|
|
8165
|
+
}
|
|
8162
8166
|
}
|
|
8163
8167
|
}
|
|
8164
8168
|
}
|
|
@@ -376,22 +376,26 @@ var PdfForm = /** @class */ (function () {
|
|
|
376
376
|
if (page && document_1) {
|
|
377
377
|
for (var i = 0; i < this._fieldCollection.length; i++) {
|
|
378
378
|
var field = this._fieldCollection[Number.parseInt(i.toString(), 10)];
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
379
|
+
if (field.page) {
|
|
380
|
+
var index = _getPageIndex(document_1, field.page._pageDictionary);
|
|
381
|
+
if (index >= 0) {
|
|
382
|
+
if (fieldCollection.has(index)) {
|
|
383
|
+
value = fieldCollection.get(index);
|
|
384
|
+
value.push(field);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
value = [];
|
|
388
|
+
value.push(field);
|
|
389
|
+
fieldCollection.set(index, value);
|
|
390
|
+
}
|
|
391
|
+
var page_1 = document_1.getPage(index);
|
|
392
|
+
if (!this._tabCollection.has(index)) {
|
|
393
|
+
this._tabCollection.set(index, page_1.tabOrder);
|
|
394
|
+
}
|
|
395
|
+
if (setTabOrder) {
|
|
396
|
+
page_1.tabOrder = this._tabCollection.get(index);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
395
399
|
}
|
|
396
400
|
}
|
|
397
401
|
var fieldsCount_1 = 0;
|