Skip to content

Commit aea1a61

Browse files
Apply suggestions from code review
Co-authored-by: annnke <[email protected]>
1 parent 8d3e854 commit aea1a61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

surveyjs-pdf-nodejs/README.MD

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ To generate a PDF form in a Node.js environment, follow these steps:
2424
2525
2. Create a [`SurveyPDF`](https://surveyjs.io/pdf-generator/documentation/api-reference/surveypdf) instance. Its constructor accepts two parameters: a survey JSON schema and a [PDF document configuration](https://surveyjs.io/pdf-generator/documentation/api-reference/idocoptions).
2626
27-
3. Specify the `data` property of a `SurveyPDF` instance to define question answers. If a survey contains default values, and you wish to preserve them, call the `mergeData(newObj)` method instead. For more information on how to programmatically define question answers, refer to the following help topic: [Populate Form Fields](https://surveyjs.io/form-library/documentation/design-survey/pre-populate-form-fields).
27+
3. Specify the `data` property of a `SurveyPDF` instance to define question answers. If a survey contains default values and you wish to preserve them, call the `mergeData(newObj)` method instead. For more information on how to programmatically define question answers, refer to the following help topic: [Populate Form Fields](https://surveyjs.io/form-library/documentation/design-survey/pre-populate-form-fields).
28+
2829
2930
4. Call the [save(fileName)](https://surveyjs.io/pdf-generator/documentation/api-reference/surveypdf#save) method on the `SurveyPDF` instance to save a PDF form.
3031

surveyjs-pdf-nodejs/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const SurveyPDF = require("survey-pdf");
22

33
const surveyPDF = new SurveyPDF.SurveyPDF({
44
"title": "COVID-19 Screening Form",
5-
"description": "All fields with an asterisk (*) are required fields and must be filled out in order to process the information in strict confidentiality.",
5+
"description": "All fields with an asterisk (*) are required fields and must be filled out in order to process information in strict confidentiality.",
66
"questionErrorLocation": "bottom",
77
"pages": [
88
{

0 commit comments

Comments
 (0)