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 generates without any content on using HTMLToPDF activity

SA-78340

Summary



PDF does not have any content when it is generated using the HTMLToPDF activity.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Create PDF content as a section rule in the Required format
  2. Create a HTML rule and include section rule inside HTML rule
  3. Create an activity and call the HTMLToPDF activity from the previous one for generating PDF by passing the HTML rule as Stream for PDF
  4. Create a flow action and use the activity in the post action to generate PDF


Root Cause



When the activity is called using button click (UI Action), the UITemplatingStatus is set as N. However, it is not set from post processing.


Resolution

Perform the following local-change: 

Set the UITemplatingStatus = N before calling the HTMLToPDF activity to render the section on the server.



​​​​​​​

Published May 21, 2019 - Updated December 2, 2021

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