survey-pdf 1.9.83 → 1.9.84

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-pdf",
3
- "version": "1.9.83",
3
+ "version": "1.9.84",
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",
@@ -26,6 +26,6 @@
26
26
  "typings": "survey.pdf.d.ts",
27
27
  "dependencies": {
28
28
  "jspdf": "^2.3.0",
29
- "survey-core": "1.9.83"
29
+ "survey-core": "1.9.84"
30
30
  }
31
31
  }
package/survey.pdf.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.83
1
+ /*Type definitions for SurveyJS PDF library v1.9.84
2
2
  Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -211,7 +211,7 @@ export declare class SurveyHelper {
211
211
  static createRect(point: IPoint, width: number, height: number): IRect;
212
212
  static createHeaderRect(controller: DocController): IRect;
213
213
  static createFooterRect(controller: DocController): IRect;
214
- static chooseHtmlFont(controller: DocController, renderAs: IHTMLRenderType): string;
214
+ static chooseHtmlFont(controller: DocController): string;
215
215
  static generateCssTextRule(fontSize: number, fontStyle: string, fontName: string): string;
216
216
  static createHtmlContainerBlock(html: string, controller: DocController, renderAs: IHTMLRenderType): string;
217
217
  static splitHtmlRect(controller: DocController, htmlBrick: IPdfBrick): IPdfBrick;
@@ -249,6 +249,7 @@ export declare class SurveyHelper {
249
249
  * allows to convert any image in acceptable format for jspdf, default: true
250
250
  */
251
251
  static convertImageToJPEG: boolean;
252
+ static getImageBase64(imageLink: string): Promise<string>;
252
253
  static getImageLink(controller: DocController, originalImageLink: string, width: number, height: number, fitType: string): Promise<string>;
253
254
  static createImageFlat(point: IPoint, question: any, controller: DocController, imagelink: string, width: number, height: number, imageFit?: string): Promise<IPdfBrick>;
254
255
  static canPreviewImage(question: QuestionFileModel, item: {