survey-pdf 1.9.13 → 1.9.16
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 +1 -1
- package/survey.pdf.d.ts +6 -3
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js +1 -1
- package/survey.pdf.js +164 -89
- package/survey.pdf.min.js +4 -4
package/package.json
CHANGED
package/survey.pdf.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS PDF library v1.9.
|
|
1
|
+
/*Type definitions for SurveyJS PDF library v1.9.16
|
|
2
2
|
Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
|
|
4
4
|
*/
|
|
@@ -156,7 +156,7 @@ export declare class SurveyHelper {
|
|
|
156
156
|
static getQuestionOrCommentValue(question: Question, isQuestion?: boolean): string;
|
|
157
157
|
static getQuestionOrCommentDisplayValue(question: Question, isQuestion?: boolean): string;
|
|
158
158
|
static inBrowser: boolean;
|
|
159
|
-
static createImageFlat(point: IPoint, question:
|
|
159
|
+
static createImageFlat(point: IPoint, question: any, controller: DocController, imagelink: string, width: number, height: number): Promise<IPdfBrick>;
|
|
160
160
|
static canPreviewImage(question: QuestionFileModel, item: {
|
|
161
161
|
name: string;
|
|
162
162
|
type: string;
|
|
@@ -230,6 +230,7 @@ export interface IDocOptions {
|
|
|
230
230
|
readonlyRenderAs?: 'auto' | 'text' | 'acroform';
|
|
231
231
|
textFieldRenderAs?: 'singleLine' | 'multiLine';
|
|
232
232
|
compress?: boolean;
|
|
233
|
+
applyImageFit?: boolean;
|
|
233
234
|
}
|
|
234
235
|
/**
|
|
235
236
|
* Contains a set of options that affect the appearance of a PDF document rendered by SurveyPDF.
|
|
@@ -252,6 +253,7 @@ export declare class DocOptions implements IDocOptions {
|
|
|
252
253
|
protected _readonlyRenderAs: 'auto' | 'text' | 'acroform';
|
|
253
254
|
protected _textFieldRenderAs: 'singleLine' | 'multiLine';
|
|
254
255
|
protected _compress: boolean;
|
|
256
|
+
protected _applyImageFit: boolean;
|
|
255
257
|
constructor(options: IDocOptions);
|
|
256
258
|
get leftTopPoint(): IPoint;
|
|
257
259
|
get fontSize(): number;
|
|
@@ -267,6 +269,7 @@ export declare class DocOptions implements IDocOptions {
|
|
|
267
269
|
get readonlyRenderAs(): 'auto' | 'text' | 'acroform';
|
|
268
270
|
get textFieldRenderAs(): 'singleLine' | 'multiLine';
|
|
269
271
|
get compress(): boolean;
|
|
272
|
+
get applyImageFit(): boolean;
|
|
270
273
|
}
|
|
271
274
|
export declare class DocController extends DocOptions {
|
|
272
275
|
constructor(options?: IDocOptions);
|
|
@@ -631,7 +634,7 @@ export declare class DrawCanvas {
|
|
|
631
634
|
* Call this method to draw image
|
|
632
635
|
* @param imageOptions
|
|
633
636
|
*/
|
|
634
|
-
drawImage(imageOptions: IDrawImageOptions): void
|
|
637
|
+
drawImage(imageOptions: IDrawImageOptions): Promise<void>;
|
|
635
638
|
}
|
|
636
639
|
|
|
637
640
|
export interface IPdfBrick extends IRect, ISize {
|
package/survey.pdf.fonts.js
CHANGED
package/survey.pdf.fonts.min.js
CHANGED