survey-pdf 1.9.52 → 1.9.54
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/README.md +12 -10
- package/package.json +2 -2
- package/survey.pdf.d.ts +4 -4
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js +1 -1
- package/survey.pdf.js +36 -26
- package/survey.pdf.min.js +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SurveyJS PDF
|
|
1
|
+
# SurveyJS PDF Generator
|
|
2
2
|
|
|
3
3
|
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
|
|
4
4
|
<a href="https://github.com/surveyjs/survey-pdf/issues">
|
|
@@ -8,20 +8,22 @@
|
|
|
8
8
|
<img alt="Closed issues" title="Closed Issues" src="https://img.shields.io/github/issues-closed/surveyjs/survey-pdf.svg">
|
|
9
9
|
</a>
|
|
10
10
|
|
|
11
|
-
SurveyJS PDF
|
|
11
|
+
SurveyJS PDF Generator allows you to save an unlimited number of custom-built survey forms to PDF (both blank and filled-in) and generate fillable PDF forms that your end users can edit. The PDF Generator library surves as a client-side extension for the [SurveyJS Form Library](https://github.com/surveyjs/survey-library).
|
|
12
12
|
|
|
13
|
-

|
|
14
14
|
|
|
15
15
|
### Features
|
|
16
16
|
|
|
17
|
-
- Support for all built-in SurveyJS Library question types
|
|
18
|
-
-
|
|
19
|
-
-
|
|
17
|
+
- Support for all built-in SurveyJS Form Library question types
|
|
18
|
+
- Editable PDF forms
|
|
19
|
+
- Export of filled forms to PDF files
|
|
20
|
+
- Option to render a survey form as a PDF file for printing or downloading
|
|
20
21
|
- Automatic page breaks
|
|
21
22
|
- Markdown support
|
|
22
23
|
- Customizable page format and font
|
|
23
|
-
-
|
|
24
|
-
- An API to
|
|
24
|
+
- Support for headers and footers both on a page and an entire survey level
|
|
25
|
+
- An API to download a fillable survey form as a document file in a traditional PDF format
|
|
26
|
+
- PDF Form conversion to Blob, Base64 URL, or Raw PDF
|
|
25
27
|
|
|
26
28
|
## Get Started
|
|
27
29
|
|
|
@@ -38,7 +40,7 @@ SurveyJS PDF Export is a client-side extension over the [SurveyJS Library](https
|
|
|
38
40
|
- [Live Examples](https://surveyjs.io/Examples/Pdf-Export)
|
|
39
41
|
- [What's New](https://surveyjs.io/WhatsNew)
|
|
40
42
|
|
|
41
|
-
## Build SurveyJS PDF
|
|
43
|
+
## Build SurveyJS PDF Generator from Sources
|
|
42
44
|
|
|
43
45
|
1. **Clone the repo**
|
|
44
46
|
|
|
@@ -78,4 +80,4 @@ Make sure that you have Node.js v6.0.0 or later and npm v2.7.0 or later installe
|
|
|
78
80
|
|
|
79
81
|
## Licensing
|
|
80
82
|
|
|
81
|
-
SurveyJS PDF
|
|
83
|
+
SurveyJS PDF Generator is **not available for free commercial usage**. If you want to integrate it into your application, you must purchase a [commercial license](https://surveyjs.io/licensing) for software developer(s) who will be working with the SurveyJS product's APIs and implementing their integration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-pdf",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.54",
|
|
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.
|
|
29
|
+
"survey-core": "1.9.54"
|
|
30
30
|
}
|
|
31
31
|
}
|
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.54
|
|
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
|
*/
|
|
@@ -782,7 +782,7 @@ export declare class BooleanItemBrick extends CheckItemBrick {
|
|
|
782
782
|
}
|
|
783
783
|
|
|
784
784
|
export declare class CheckboxItemBrick extends CheckItemBrick {
|
|
785
|
-
constructor(question: IQuestion, controller: DocController, rect: IRect, item: ItemValue
|
|
785
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect, item: ItemValue);
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
export declare class CheckItemBrick extends PdfBrick {
|
|
@@ -791,7 +791,7 @@ export declare class CheckItemBrick extends PdfBrick {
|
|
|
791
791
|
protected checked: boolean;
|
|
792
792
|
static readonly CHECKMARK_READONLY_FONT_SIZE_SCALE: number;
|
|
793
793
|
protected question: QuestionCheckboxModel;
|
|
794
|
-
constructor(question: IQuestion, controller: DocController, rect: IRect, fieldName: string, readonly: boolean, checked: boolean);
|
|
794
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect, fieldName: string, value: string, readonly: boolean, checked: boolean);
|
|
795
795
|
renderInteractive(): Promise<void>;
|
|
796
796
|
renderReadOnly(): Promise<void>;
|
|
797
797
|
}
|
|
@@ -872,7 +872,7 @@ export declare class RadioGroupWrap {
|
|
|
872
872
|
get readOnly(): boolean;
|
|
873
873
|
}
|
|
874
874
|
export declare class RadioItemBrick extends PdfBrick {
|
|
875
|
-
constructor(question: IQuestion, controller: DocController, rect: IRect, index: number, checked: boolean, radioGroupWrap: RadioGroupWrap);
|
|
875
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect, index: number, checked: boolean, radioGroupWrap: RadioGroupWrap, value: string);
|
|
876
876
|
renderInteractive(): Promise<void>;
|
|
877
877
|
renderReadOnly(): Promise<void>;
|
|
878
878
|
}
|
package/survey.pdf.fonts.js
CHANGED
package/survey.pdf.fonts.min.js
CHANGED