How to use survey-pdf - 2 common examples

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

A UI component that uses SurveyJS form JSON schemas to render forms as PDF documents. It populates PDF fields with data collected using SurveyJS Form Library and lets you export your SurveyJS forms as editable or pre-filled PDFs.

SEE LICENSE IN LICENSE
Latest version published 4 days ago

Package Health Score

90 / 100
Full package analysis

Popular survey-pdf functions