Question T12474
Visible to All Users

Is it possible to export the multiple survey questionnaire at once with Survey PDF?

created 2 years ago (modified 2 years ago)

Hi,

In my application, I am having more than one instance of Survey JS runner Questionnaire. I want to export the response of these questionnaire as a bulk export to pdf or csv?
Also, we want the exported pdf should be read only without having form like structure.

Is it possible to achieve this behavior?

Thanks,
Santosh

Answers approved by surveyjs Support

created 2 years ago

Hello Santosh,
You can consider either option to merge PDF files.

  • Merge multiple surveys into a single survey and export it to PDF using the Survey PDF library. Please find a code example in the following thread: Merge several SurveyJSONs manually.
  • Export surveys to different PDF documents and merge PDF document using a third-party library. There are several JavaScript libraries that can be used to merge PDF files. For example, you can try pdf-lib: How to Merge Two PDF Files Using jsPDF.

Please let me know if you have additional questions.

To process your second question in the most efficient manner, I created a separate thread: Export a survey to a read-only PDF document without fillable fields.

    Show previous comments (6)

      You're always welcome, Santosh. The exported PDF file can display page titles. Please configure a page's title property.

      JSON
      { pages: [ { name: "page1", title: "Page 1", elements: [ { type: "text", name: "survey1-q1" } ] } ] };

      Example.

      Let me know if you have further questions.

        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

          Hello,

          I created a separate ticket on your behalf: T12545: Export custom widgets to PDF. We placed it in our processing queue and will process it shortly.