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 not applied to PDF when run through agent



The below issues occur when using Pega out-of-the-box activities HTMLToPDF and AttachToWork to attach a PDF to the work item.
  • Styles are not applied to the PDF when executing the code through an agent.
  • Generating a PDF takes about a minute from the front end.

Error Messages

Not Applicable

Steps to Reproduce

Create an agent.

Agent Activity:
  1. Open a work object.
  2. Set the parameters for Property-Set-Stream:
    Parameters: Rule-HTML-Harness, Harness name.
  3. Call the HTMLToPDF activity.
  4. Call the AttachToWork activity.

Root Cause

A defect in Pegasystems’ code or rules.


Apply HFix-35985.

Published November 8, 2017 - 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