survey-pdf 2.5.1 → 2.5.2
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/pdf-form-filler-shared.mjs +1 -1
- package/fesm/pdf-form-filler.mjs +1 -1
- package/fesm/pdf-form-filler.node.mjs +1 -1
- package/fesm/pdf-shared.mjs +4 -4
- package/fesm/pdf-shared.mjs.map +1 -1
- package/fesm/survey.pdf.fonts.mjs +1 -1
- package/fesm/survey.pdf.mjs +1 -1
- package/fesm/survey.pdf.node.mjs +1 -1
- package/package.json +2 -2
- package/pdf-form-filler.js +1 -1
- package/pdf-form-filler.min.js.LICENSE.txt +1 -1
- package/pdf-form-filler.node.js +1 -1
- package/pdf-form-filler.node.min.js.LICENSE.txt +1 -1
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js.LICENSE.txt +1 -1
- package/survey.pdf.js +4 -4
- package/survey.pdf.js.map +1 -1
- package/survey.pdf.min.js +1 -1
- package/survey.pdf.min.js.LICENSE.txt +1 -1
- package/survey.pdf.node.js +4 -4
- package/survey.pdf.node.js.map +1 -1
- package/survey.pdf.node.min.js +1 -1
- package/survey.pdf.node.min.js.LICENSE.txt +1 -1
package/fesm/pdf-form-filler.mjs
CHANGED
package/fesm/pdf-shared.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS PDF library v2.5.
|
|
2
|
+
* surveyjs - SurveyJS PDF library v2.5.2
|
|
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
|
*/
|
|
@@ -1321,7 +1321,7 @@ class SurveyHelper {
|
|
|
1321
1321
|
return controller.useCustomFontInHtml ? controller.fontName : this.STANDARD_FONT;
|
|
1322
1322
|
}
|
|
1323
1323
|
static generateCssTextRule(fontSize, fontStyle, fontName) {
|
|
1324
|
-
return `"font-size: ${fontSize}pt; font-weight: ${fontStyle}; font-family: ${fontName}; color: ${this.TEXT_COLOR};"`;
|
|
1324
|
+
return `"font-size: ${fontSize}pt; font-weight: ${fontStyle}; font-family: ${fontName}; color: ${this.TEXT_COLOR}; margin: 0"`;
|
|
1325
1325
|
}
|
|
1326
1326
|
static createHtmlContainerBlock(html, controller, renderAs) {
|
|
1327
1327
|
const font = this.chooseHtmlFont(controller);
|
|
@@ -8207,7 +8207,7 @@ class FlatFile extends FlatQuestion {
|
|
|
8207
8207
|
}
|
|
8208
8208
|
generateFlatItem(point, item) {
|
|
8209
8209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8210
|
-
const compositeFlat = new CompositeBrick(yield SurveyHelper.createLinkFlat(point, this.question, this.controller, item.name === undefined ? 'image' : item.name, item.content));
|
|
8210
|
+
const compositeFlat = new CompositeBrick(yield SurveyHelper.createLinkFlat(point, this.question, this.controller, item.name === undefined ? 'image' : item.name, typeof item.content == 'string' ? item.content : ''));
|
|
8211
8211
|
if (SurveyHelper.canPreviewImage(this.question, item, item.content)) {
|
|
8212
8212
|
const imagePoint = SurveyHelper.createPoint(compositeFlat);
|
|
8213
8213
|
imagePoint.yTop += this.controller.unitHeight * FlatFile.IMAGE_GAP_SCALE;
|
|
@@ -9385,7 +9385,7 @@ class CustomBrick extends PdfBrick {
|
|
|
9385
9385
|
}
|
|
9386
9386
|
}
|
|
9387
9387
|
|
|
9388
|
-
checkLibraryVersion(`${"2.5.
|
|
9388
|
+
checkLibraryVersion(`${"2.5.2"}`, 'survey-pdf');
|
|
9389
9389
|
|
|
9390
9390
|
export { TextBoldBrick as $, FlatMatrixDynamic as A, BaseImageUtils as B, FlatMultipleText as C, DocOptions as D, EventHandler as E, FlatRepository as F, DrawCanvas as G, HorizontalAlign as H, PdfBrick as I, BooleanItemBrick as J, CheckboxItemBrick as K, CheckItemBrick as L, CompositeBrick as M, CustomBrick as N, DropdownBrick as O, PagePacker as P, EmptyBrick as Q, HTMLBrick as R, SurveyPDF as S, ImageBrick as T, LinkBrick as U, VerticalAlign as V, RadioItemBrick as W, RankingItemBrick as X, RowlineBrick as Y, TextFieldBrick as Z, __awaiter as _, SurveyHelper as a, TextBrick as a0, TitlePanelBrick as a1, DocController as b, FlatQuestion as c, FlatQuestionDefault as d, FlatBooleanCheckbox as e, FlatCheckbox as f, FlatCustomModel as g, FlatComment as h, FlatDropdown as i, FlatExpression as j, FlatFile as k, FlatHTML as l, FlatImage as m, FlatImagePicker as n, FlatPanelDynamic as o, FlatRadiogroup as p, FlatRanking as q, registerImageUtils as r, FlatRating as s, FlatSlider as t, FlatSelectBase as u, FlatSignaturePad as v, FlatTextbox as w, FlatSurvey as x, FlatMatrix as y, FlatMatrixMultiple as z };
|
|
9391
9391
|
//# sourceMappingURL=pdf-shared.mjs.map
|