How to use the survey-pdf.SurveyPDF function in survey-pdf

To help you get started, we’ve selected a few survey-pdf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github surveyjs / surveyjs_angular_cli / src / app / survey.component.ts View on Github external
savePDF() {
    var options = {
      fontSize: 14,
      margins: {
        left: 10,
        right: 10,
        top: 10,
        bot: 10
      }
    };
    const surveyPDF = new SurveyPDF.SurveyPDF(this.json, options);
    console.log(this.result);
    surveyPDF.data = this.result;
    surveyPDF.save("survey PDF example");
  }
}
github surveyjs / surveyjs_react_quickstart / src / App.js View on Github external
savePDF = (model) => {
    var surveyPDF = new SurveyPDF.SurveyPDF(this.json);
    surveyPDF.data = model.data;
    surveyPDF.save();
  }

survey-pdf

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.

SEE LICENSE IN LICENSE
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis

Popular survey-pdf functions