Hi Support team,
I was facing issue, comment box if big content it cut with page:
But below given solution help me out to flat it but I need to add border to the content container of comment text. I haven't find any solution for that.
SurveyPDF.FlatRepository.register("comment", SurveyPDF.FlatQuestionDefault)
Please share your insight so that after conversion form comment to flat text, how can i add border around that.
Thanks & Regards,
Gurpreet Singh
Hello Gurpreet,
Please let me elaborate on your usage scenario. Do you wish to render a large piece of read-only text and wrap it with a border in PDF?
Hi Jane
Yes,
Initially we have a comment box in form and that is mostly fill with large content and once we check in pdf download it cut from bottom.
we fix that using "SurveyPDF.FlatRepository.register("comment", SurveyPDF.FlatQuestionDefault)" that convert that as simple text.
now requirement is to show that text in pdf inside bordered line.
so that it would be like textarea.
Thanks,
Gurpreet Singh
Hello Gurpreet,
Thank you for the confirmation.
If you wish to render a large comment text in read-only mode and render a border around the text, please follow these steps:
Survey.settings.readOnly.commentRenderMode
property to"div"
to render text questions ("text"
and"comment"
) as plain text.mode
todisplay
to enable read-only fields.Consider the following demo: View Plunker.
Let me know if it works for you.
Hi Jane
I tested and this is not working. If you increase text it will cut from bottom.
double the content you will see the issue.
need full content visible with border.
Thanks,
Gurpreet Singh
Hello Gurpreet,
Thank you for the update. The content which appears within a border cannot be split between pages. Therefore, a part of a large text is cropped. I'll research whether it's possible to render a large text and split it between pages and render a border around each piece of text. Meanwhile, would you please elaborate on your usage scenario? Which kind of a large text do you wish to render in your forms / in PDF?
Thanks
Hello Gurpreet,
Unfortunately, it is currently impossible to properly split the large text in pages and render a border around each piece of text. We will note down this inquiry for further investigation: https://github.com/surveyjs/survey-pdf/issues/328.
Thank you
Thanks for investing your time on this and adding this requirement in consideration.
Thank you for your understanding. I'll let you know if we have any news to share.
Best regards