Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Configure a section with a textarea.
  2. Enter a large text in the textarea control such that scroll bars are present.
  3. 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>


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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice