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

PDF eForm generation does not populate correctly when flattened

SA-12812

Summary



User generates a read-only PDF eForm. Text does not wrap and is cut off in the PDF.  This was working fine in PRPC 6 and issue occurs after upgrading to Pega 7.1.7.

Error Messages



Not Applicable

Steps to Reproduce



1. Create eForm File and Map eForm in the Activity. 
2. Call GenerateEForm on a Page.
3. Configure the Property-set: 
.pyEForms(<APPEND>) APage.pyEForm.
4. Call ConcatenateEForms.
5. In the Java steps, use the below: 

byte[] input=(byte[]) pega.findPageWithException("concanated_PDFName", "Code-Pega-eForm").getObject(".pyEForm");
byte[] output=tools.getEFormUtils().markAllEFormFieldsReadOnly(input);

ClipboardPage targetPage = tools.findPage("concanated_PDFName ");
ClipboardProperty targetProp = targetPage.getProperty("pyEForm");
targetProp.setValue(output);


6. call AttachEForm. 

Root Cause



The issue is in Class com.pega.pegarules.integration.engine.internal.util.PREformUtils. 

Resolution



Install HFix-23168 to resolve the issue.

Published August 17, 2015 - 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