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 boxes with large amount of text displays incorrectly in PDF

SA-70546

Summary



Textboxes containing a large amount of text do not display correctly in the PDF when using the pxCreatePDF shape.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section with a textbox and invoke it in the pxCreatePDF shape
  2. Run the usecase. If the textbox contains a large amount of text, the content is truncated and the textbox rendered in the PDF is of fixed width. When the PDF content is copied to the text file, all values display. 


Root Cause



The underlying PD4ML library is unable to process all types of CSS and HTML that the application generates for Sections. The CreatePDF smart shape can only work with the subset of Sections generated by the application.


Resolution



Perform the following local-change:
  1. Open the pyAttachAsPDF rules
  2. Add the below line as the first Java step.

    tools.putParamValue("SectionReadOnly","-1"); 
If the read only section has the font color set to white in the generated PDF, perform the following:
  1. Create a non-auto section.
  2. Include the non-auto section in the actual section.
  3. Add the required CSS in the non-auto section using the Style tag.

Published January 31, 2019 - 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?

Want to help us improve this content?

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
Contact us