Support Article
Text area responses are not completing visible in PDF
SA-44575
Summary
When generating a PDF from a section with a textarea, the entire text does not display. However, it is exported to PDF with scroll bars.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a section with a textarea.
- Enter a large text in the textarea control such that scroll bars are present.
- Export the section content to PDF using the HTMLToPDF activity.
Root Cause
To export the content to PDF, the application must pass an HTML Stream as input to the HTMLToPDF activity. This is done in a custom HTML Stream rule referenced with the below code and passed to the activity.
<pega:withPage name="pyWorkPage">
<pega:include name="TestFirst" type="Rule-HTML-Section" />
</pega:withPage>
The Mode parameter for Pega:Include tag determines if a section's content requires a presentation. In the PDF, presentation is not required. After passing the Mode parameter value as 'noinput', the entire textarea content displays in the PDF without scrollbars.
<pega:withPage name="pyWorkPage">
<pega:include name="TestFirst" type="Rule-HTML-Section" mode = "input" />
</pega:withPage>
Resolution
The Mode parameter for Pega:Include tag determines if a section's content requires a presentation. In the PDF, presentation is not required. After passing the Mode parameter value as 'noinput', the entire textarea content displays in the PDF without scrollbars.
<pega:withPage name="pyWorkPage">
<pega:include name="TestFirst" type="Rule-HTML-Section" mode = "input" />
</pega:withPage>
Published April 20, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.