survey-pdf 2.0.0-rc.6 → 2.0.0-rc.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/fesm/survey.pdf.fonts.js +6 -44
- package/fesm/survey.pdf.fonts.js.map +1 -1
- package/fesm/survey.pdf.js +6369 -7047
- package/fesm/survey.pdf.js.map +1 -1
- package/package.json +2 -2
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js.LICENSE.txt +1 -1
- package/survey.pdf.js +23 -16
- package/survey.pdf.js.map +1 -1
- package/survey.pdf.min.js +1 -1
- package/survey.pdf.min.js.LICENSE.txt +23 -1
- /package/typings/jspdf_plugins/{acroform.d.ts → acroform_radio.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-pdf",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"description": "survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"typings": "./typings/entries/pdf.d.ts",
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"survey-core": "2.0.0-rc.
|
|
22
|
+
"survey-core": "2.0.0-rc.8"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"jspdf": "^2.3.0"
|
package/survey.pdf.fonts.js
CHANGED
package/survey.pdf.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS PDF library v2.0.0-rc.
|
|
2
|
+
* surveyjs - SurveyJS PDF library v2.0.0-rc.8
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -806,11 +806,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
806
806
|
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jspdf */ "jspdf");
|
|
807
807
|
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_1__);
|
|
808
808
|
/* harmony import */ var _helper_survey__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper_survey */ "./src/helper_survey.ts");
|
|
809
|
-
/* harmony import */ var
|
|
809
|
+
/* harmony import */ var _jspdf_plugins_acroform_radio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jspdf_plugins/acroform_radio */ "./src/jspdf_plugins/acroform_radio.ts");
|
|
810
810
|
/* harmony import */ var _jspdf_plugins_acroform_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jspdf_plugins/acroform.js */ "./src/jspdf_plugins/acroform.js");
|
|
811
|
-
/* harmony import */ var _jspdf_plugins_acroform_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_jspdf_plugins_acroform_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
812
811
|
/* harmony import */ var _jspdf_plugins_from_html_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./jspdf_plugins/from_html.js */ "./src/jspdf_plugins/from_html.js");
|
|
813
|
-
/* harmony import */ var _jspdf_plugins_from_html_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_jspdf_plugins_from_html_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
814
812
|
|
|
815
813
|
|
|
816
814
|
|
|
@@ -1038,7 +1036,7 @@ var DocController = /** @class */ (function (_super) {
|
|
|
1038
1036
|
DocController.addFont(_this.fontName, _this.base64Bold, 'bold');
|
|
1039
1037
|
_this._doc = new jspdf__WEBPACK_IMPORTED_MODULE_1__.jsPDF(jspdfOptions);
|
|
1040
1038
|
}
|
|
1041
|
-
(0,
|
|
1039
|
+
(0,_jspdf_plugins_acroform_radio__WEBPACK_IMPORTED_MODULE_3__["default"])(_this._doc);
|
|
1042
1040
|
_this._useCustomFontInHtml = options.useCustomFontInHtml && _helper_survey__WEBPACK_IMPORTED_MODULE_2__.SurveyHelper.isFontExist(_this, _this.fontName);
|
|
1043
1041
|
_this._helperDoc = new jspdf__WEBPACK_IMPORTED_MODULE_1__.jsPDF(jspdfOptions);
|
|
1044
1042
|
_this._doc.setFont(_this.fontName);
|
|
@@ -1555,7 +1553,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1555
1553
|
|
|
1556
1554
|
|
|
1557
1555
|
|
|
1558
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_51__.checkLibraryVersion)("".concat("2.0.0-rc.
|
|
1556
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_51__.checkLibraryVersion)("".concat("2.0.0-rc.8"), 'survey-pdf');
|
|
1559
1557
|
|
|
1560
1558
|
|
|
1561
1559
|
/***/ }),
|
|
@@ -6187,8 +6185,12 @@ var SurveyHelper = /** @class */ (function () {
|
|
|
6187
6185
|
/*!***************************************!*\
|
|
6188
6186
|
!*** ./src/jspdf_plugins/acroform.js ***!
|
|
6189
6187
|
\***************************************/
|
|
6190
|
-
/***/ ((__unused_webpack_module,
|
|
6188
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6191
6189
|
|
|
6190
|
+
"use strict";
|
|
6191
|
+
__webpack_require__.r(__webpack_exports__);
|
|
6192
|
+
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jspdf */ "jspdf");
|
|
6193
|
+
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_0__);
|
|
6192
6194
|
/* global jsPDF */
|
|
6193
6195
|
/**
|
|
6194
6196
|
* @license
|
|
@@ -6202,7 +6204,8 @@ var SurveyHelper = /** @class */ (function () {
|
|
|
6202
6204
|
* jsPDF AcroForm Plugin
|
|
6203
6205
|
* @module AcroForm
|
|
6204
6206
|
*/
|
|
6205
|
-
|
|
6207
|
+
|
|
6208
|
+
|
|
6206
6209
|
(function (jsPDF, globalObj) {
|
|
6207
6210
|
'use strict';
|
|
6208
6211
|
|
|
@@ -9113,14 +9116,14 @@ var jspdf = __webpack_require__(/*! jspdf */ "jspdf");
|
|
|
9113
9116
|
PasswordField: AcroFormPasswordField,
|
|
9114
9117
|
Appearance: AcroFormAppearance
|
|
9115
9118
|
};
|
|
9116
|
-
})(
|
|
9119
|
+
})(jspdf__WEBPACK_IMPORTED_MODULE_0__.jsPDF, (typeof window !== 'undefined' && window || typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g));
|
|
9117
9120
|
|
|
9118
9121
|
/***/ }),
|
|
9119
9122
|
|
|
9120
|
-
/***/ "./src/jspdf_plugins/
|
|
9121
|
-
|
|
9122
|
-
!*** ./src/jspdf_plugins/
|
|
9123
|
-
|
|
9123
|
+
/***/ "./src/jspdf_plugins/acroform_radio.ts":
|
|
9124
|
+
/*!*********************************************!*\
|
|
9125
|
+
!*** ./src/jspdf_plugins/acroform_radio.ts ***!
|
|
9126
|
+
\*********************************************/
|
|
9124
9127
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9125
9128
|
|
|
9126
9129
|
"use strict";
|
|
@@ -9147,8 +9150,12 @@ function setRadioAppearance(doc) {
|
|
|
9147
9150
|
/*!****************************************!*\
|
|
9148
9151
|
!*** ./src/jspdf_plugins/from_html.js ***!
|
|
9149
9152
|
\****************************************/
|
|
9150
|
-
/***/ ((__unused_webpack_module,
|
|
9153
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9151
9154
|
|
|
9155
|
+
"use strict";
|
|
9156
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9157
|
+
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jspdf */ "jspdf");
|
|
9158
|
+
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_0__);
|
|
9152
9159
|
/**
|
|
9153
9160
|
* jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
|
|
9154
9161
|
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
|
@@ -9162,7 +9169,7 @@ function setRadioAppearance(doc) {
|
|
|
9162
9169
|
*
|
|
9163
9170
|
* ====================================================================
|
|
9164
9171
|
*/
|
|
9165
|
-
|
|
9172
|
+
|
|
9166
9173
|
|
|
9167
9174
|
(function (jsPDFAPI) {
|
|
9168
9175
|
var clone, _DrillForContent, FontNameDB, FontStyleMap, TextAlignMap, FontWeightMap, FloatMap, ClearMap, GetCSS, PurgeWhiteSpace, Renderer, ResolveFont, ResolveUnitedNumber, UnitedNumberMap, elementHandledElsewhere, images, loadImgs, checkForFooter, process, tableToJson;
|
|
@@ -10378,7 +10385,7 @@ function setRadioAppearance(doc) {
|
|
|
10378
10385
|
if (!settings.elementHandlers) settings.elementHandlers = {};
|
|
10379
10386
|
return process(this, HTML, isNaN(x) ? 4 : x, isNaN(y) ? 4 : y, settings, callback);
|
|
10380
10387
|
};
|
|
10381
|
-
})(
|
|
10388
|
+
})(jspdf__WEBPACK_IMPORTED_MODULE_0__.jsPDF.API);
|
|
10382
10389
|
|
|
10383
10390
|
|
|
10384
10391
|
/***/ }),
|