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 styling not working when run via agent



Generated PDF does not have styles when the activity is run using an Agent on Pega 7.1.9.

Error Messages

Not Applicable

Steps to Reproduce

1.Create an Agent.
2.Open Work Object:Property-Set-Stream :- Parameters : Rule-HTML-Harness , Harness name
4.Call AttachToWork.

Root Cause

Latest PD4ML jar file is not present in the environment.


Apply HFix-33214.

Following are the steps to be followed:

1. Take a DB Back-Up.
2. Extract the Jar file and do application import of the HFix-33214 jar file
3. Restart the server for the changes to take effect.
4. Test your scenario

Note : Make sure the pd4ml version is PD4ML 398fx4a1 Pro DMS by including the below code snippet as a java step in an activity and check its out put in console.

Code snippet

org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML();
String pd4mlVersion = pd4ml.getVersion();
System.out.println("pdml verion" + pd4mlVersion);

Published May 24, 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