[Ticket cloned from T20205: Survey Pdf Issues]
Thanks Jane,
one more thing. Is there any way to reduce the blank space between two pages? Like can we continue the questions from same page instead of showing the blank space?
[Ticket cloned from T20205: Survey Pdf Issues]
Thanks Jane,
one more thing. Is there any way to reduce the blank space between two pages? Like can we continue the questions from same page instead of showing the blank space?
Hello,
Thank you for sharing a JSON. A new page actually appears on the next PDF form page. If you wish to continuously render form elements in PDF, set the questionsOnPageMode
to singlePage
of a SurveyJS PDF instance:
JavaScriptconst surveyPDF = new SurveyPDF.SurveyPDF(json, options);
surveyPDF.questionsOnPageMode = "singlePage";
Drop me a line if you require further assistance.
Hello Shobhit,
If there is enough space to render questions, no gap should appear. If your form produces such a gap, please feel free to share a problematic survey JSON for further investigation.
Thank you
Hi Jane,
this is the form JSON-
{ "title": "Default Form.", "description": "Enter a form description", "pages": [ { "name": "page1", "elements": [ { "type": "text", "name": "question1", "title": "question1" }, { "type": "checkbox", "name": "question2", "title": "question2", "choices": [ "item1", "item2", "item3" ] }, { "type": "radiogroup", "name": "question3", "title": "question3", "choices": [ "item1", "item2", "item3" ] }, { "type": "dropdown", "name": "question4", "visibleIf": "{question3} = 'item2'", "title": "question4", "choices": [ "item1", "item2", "item3" ] }, { "type": "dropdown", "name": "question5", "visibleIf": "{question2} contains 'item1'", "title": "question5", "choices": [ "item1", "item2", "item3" ] } ] }, { "name": "page2", "elements": [ { "type": "matrix", "name": "question6", "title": "question6", "columns": [ "Column 1", "Column 2", "Column 3" ], "rows": [ "Row 1", "Row 2" ] }, { "type": "dropdown", "name": "question9", "title": "question9", "choices": [ "item1", "item2", "item3" ] } ] } ] }
In this, question 3 is in page 1 and question 6 is in page 2.