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
- Create a section with a textbox and invoke it in the pxCreatePDF shape
- 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:
- Open the pyAttachAsPDF rules
- Add the below line as the first Java step.
tools.putParamValue("SectionReadOnly","-1");
- Create a non-auto section.
- Include the non-auto section in the actual section.
- Add the required CSS in the non-auto section using the Style tag.
Published January 31, 2019 - 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.