Question T4873
Visible to All Users

Stop New Page Elements being rendered on a new page in PDF.

created 5 years ago

Our SurveyJS template contains panels to separate sections. However in the PDF we potentially have a lot of whitespace between these sections as it seems Panels are always rendered on a new page. Is there a way to stop this from happening?

Answers approved by surveyjs Support

created 5 years ago

Hello,

Panels are not rendered on separate pages in SurveyPDF by default. Here is live sample in plunker where you can see that SurveyPDF cuts second panel's content into two pages. Could you share us a live sample with the issue? So we can investigate it. Please, provide a minimal-size SurveyJSON for this

Thanks, Alex
SurveyJS Team

    Show previous comments (7)

      I have the same problem. The Survey is separated into different pages while entering the informations into the form. But the pdf export should not have separated pages. Can you please help?

        Hello,

        You can set questionsOnPageMode property of SurveyPDF instance equal "singlePage" to prevent render survey pages on different pages of PDF document. Here is live sample in plunker

        Thanks, Alex
        SurveyJS Team

          Works perfectly! Thanks a lot ;)