survey-pdf 1.9.75 → 1.9.77

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.75",
3
+ "version": "1.9.77",
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.75"
29
+ "survey-core": "1.9.77"
30
30
  }
31
31
  }
package/survey.pdf.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.75
1
+ /*Type definitions for SurveyJS PDF library v1.9.77
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
  */
@@ -243,6 +243,11 @@ export declare class SurveyHelper {
243
243
  static getQuestionOrCommentValue(question: Question, isQuestion?: boolean): string;
244
244
  static getQuestionOrCommentDisplayValue(question: Question, isQuestion?: boolean): string;
245
245
  static inBrowser: boolean;
246
+ /**
247
+ * allows to convert any image in acceptable format for jspdf, default: true
248
+ */
249
+ static convertImageToJPEG: boolean;
250
+ static getImageLink(controller: DocController, originalImageLink: string, width: number, height: number, fitType: string): Promise<string>;
246
251
  static createImageFlat(point: IPoint, question: any, controller: DocController, imagelink: string, width: number, height: number, imageFit?: string): Promise<IPdfBrick>;
247
252
  static canPreviewImage(question: QuestionFileModel, item: {
248
253
  name: string;
@@ -891,6 +896,7 @@ export declare class DrawCanvas {
891
896
  /**
892
897
  * A total number of pages in the document.
893
898
  */
899
+ get pageCount(): number;
894
900
  get countPages(): number;
895
901
  /**
896
902
  * The number of the page that contains the drawing area. Enumeration starts with 1.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.75
2
+ * surveyjs - SurveyJS PDF library v1.9.77
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.75
2
+ * surveyjs - SurveyJS PDF library v1.9.77
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */