Skip to content

Supplementary component to the SurveyJS Form Library to download surveys as PDF files and generate editable PDF forms.

License

Notifications You must be signed in to change notification settings

surveyjs/survey-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d47b58 · Sep 10, 2024
Mar 6, 2023
Sep 13, 2021
Nov 27, 2019
Aug 27, 2024
Mar 29, 2023
Sep 10, 2024
Sep 10, 2024
Sep 13, 2021
Sep 13, 2021
Oct 20, 2023
Sep 10, 2024
May 30, 2023
Aug 19, 2024
Feb 11, 2022
Apr 10, 2019
May 14, 2024
Jul 30, 2019
Feb 18, 2020
Sep 10, 2024
Aug 26, 2024
Sep 10, 2024
Feb 11, 2022
Apr 23, 2024
Feb 11, 2022
Aug 26, 2024
May 2, 2024
Feb 11, 2022

Repository files navigation

SurveyJS PDF Generator

pdf-generator.mp4

Build Status Issues Closed issues

SurveyJS PDF Generator allows you to save an unlimited number of custom-built survey forms to PDF (both blank and filled-in) and generate fillable PDF forms that your end users can edit. The PDF Generator library surves as a client-side extension for the SurveyJS Form Library.

Features

  • Support for all built-in SurveyJS Form Library question types
  • Editable PDF forms
  • Export of filled forms to PDF files
  • Option to render a survey form as a PDF file for printing or downloading
  • Automatic page breaks
  • Markdown support
  • Customizable page format and font
  • Support for headers and footers both on a page and an entire survey level
  • An API to download a fillable survey form as a document file in a traditional PDF format
  • PDF Form conversion to Blob, Base64 URL, or Raw PDF

Survey PDF Generator

Get Started

Resources

Build SurveyJS PDF Generator from Sources

  1. Clone the repo

    git clone https://github.com/surveyjs/survey-pdf.git
    cd survey-pdf
    
  2. Install dependencies
    Make sure that you have Node.js v6.0.0 or later and npm v2.7.0 or later installed.

    npm install
    
  3. Build the library

    npm run build_prod
    

    You can find the built scripts and style sheets in the survey-pdf folder under the packages directory.

  4. Run test examples

    npm start
    

    This command runs a local HTTP server at http://localhost:7777/.

  5. Run unit tests

    npm test
    

Licensing

SurveyJS PDF Generator is not available for free commercial usage. If you want to integrate it into your application, you must purchase a commercial license for software developer(s) who will be working with the SurveyJS product's APIs and implementing their integration.