Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: annnke <[email protected]>
  • Loading branch information
RomanTsukanov and annnke authored Aug 30, 2023
1 parent 8d3e854 commit aea1a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion surveyjs-pdf-nodejs/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ To generate a PDF form in a Node.js environment, follow these steps:

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).

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).
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).


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.

Expand Down
2 changes: 1 addition & 1 deletion surveyjs-pdf-nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const SurveyPDF = require("survey-pdf");

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

0 comments on commit aea1a61

Please sign in to comment.