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

Styles are not included in the generated PDF

SA-79488

Summary



User creates a PDF using the HTMLtoPDF activity. However, the styles are not included in the generated PDF if the activity is run through an agent. The styles are included only on running the activity manually.


Error Messages


 

Not Applicable

 

Steps to Reproduce

  1. Create an activity which creates a PDF using HTMLtoPDF
  2. Execute the activity through an agent


Root Cause



An issue in the custom application code or rules. The harness passed to HTMLtoPDF is not configured to include all the styles.

Resolution



Perform the following local-change:
  1. Copy the Cascading Style Sheet (CSS) of the application skin rule in the CSS text file rule
  2. Copy the custom CSS (those from embedded sections) in a separate CSS text file rule
  3. Include the CSS text file rules in the Scripts and Styles tab of the harness which is passed to HTMLtoPDF
  4. Ensure that the correct access group is provided to the agent


 

Published August 15, 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