Question T12545
Visible to All Users

Export custom widgets to PDF

created 2 years ago (modified 2 years ago)

[Ticket cloned from T12474: Is it possible to export the multiple survey questionnaire at once with Survey PDF?]

Hi Jane,

Thanks for sharing this example.

One more thing, I have few custom widgets in my survey Js. How can I export them using survey PDF?

Thanks,
Santosh

Answers approved by surveyjs Support

created 2 years ago

If you are talking about custom widgets, the following options available if you wish to export custom widgets to PDF.

  • Set the pdfQuestionType property to a built-in question type. For example, as it's done for the Emotions Rating widget: pdfQuestionType: "dropdown". Now, a custom widget will be rendered using the PDF rendering of the specified question type.
  • Implement the pdfRender function: Bootstrap Slider example. This option implies that you write code to render a custom widget to PDF. Note that this code uses internal SurveyJS PDF API, which may not be documented.

Tip: You can investigate the https://github.com/surveyjs/custom-widgets repository for more examples of PDF rendering options for custom widgets.

Please let me know if you have any questions or require further assistance.