Skip to content

Commit

Permalink
Rename a variable in PDF Get Started
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Tsukanov committed Sep 16, 2023
1 parent b809c3e commit 23c812e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions get-started-pdf/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const surveyJson = {
completedHtml: "Thank you for your feedback!",
};

const exportToPdfOptions: IDocOptions = {
const pdfDocOptions: IDocOptions = {
fontSize: 12
};

const savePdf = function (surveyData: any) {
const surveyPdf = new SurveyPDF(surveyJson, exportToPdfOptions);
const surveyPdf = new SurveyPDF(surveyJson, pdfDocOptions);
surveyPdf.data = surveyData;
surveyPdf.save();
};
Expand Down
4 changes: 2 additions & 2 deletions get-started-pdf/jquery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const surveyJson = {

const survey = new Survey.Model(surveyJson);

const exportToPdfOptions = {
const pdfDocOptions = {
fontSize: 12
};

const savePdf = function (surveyData) {
const surveyPdf = new SurveyPDF.SurveyPDF(surveyJson, exportToPdfOptions);
const surveyPdf = new SurveyPDF.SurveyPDF(surveyJson, pdfDocOptions);
surveyPdf.data = surveyData;
surveyPdf.save();
};
Expand Down
4 changes: 2 additions & 2 deletions get-started-pdf/knockout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const surveyJson = {

const survey = new Survey.Model(surveyJson);

const exportToPdfOptions = {
const pdfDocOptions = {
fontSize: 12
};

const savePdf = function (surveyData) {
const surveyPdf = new SurveyPDF.SurveyPDF(surveyJson, exportToPdfOptions);
const surveyPdf = new SurveyPDF.SurveyPDF(surveyJson, pdfDocOptions);
surveyPdf.data = surveyData;
surveyPdf.save();
};
Expand Down
4 changes: 2 additions & 2 deletions get-started-pdf/react/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ const surveyJson = {
completedHtml: "Thank you for your feedback!",
};

const exportToPdfOptions = {
const pdfDocOptions = {
fontSize: 12
};

const savePdf = function (surveyData) {
const surveyPdf = new SurveyPDF(surveyJson, exportToPdfOptions);
const surveyPdf = new SurveyPDF(surveyJson, pdfDocOptions);
surveyPdf.data = surveyData;
surveyPdf.save();
};
Expand Down
4 changes: 2 additions & 2 deletions get-started-pdf/vue/src/components/MySurvey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const surveyJson = {
completedHtml: "Thank you for your feedback!",
};
const exportToPdfOptions = {
const pdfDocOptions = {
fontSize: 12
};
const savePdf = function (surveyData) {
const surveyPdf = new SurveyPDF(surveyJson, exportToPdfOptions);
const surveyPdf = new SurveyPDF(surveyJson, pdfDocOptions);
surveyPdf.data = surveyData;
surveyPdf.save();
};
Expand Down

0 comments on commit 23c812e

Please sign in to comment.