Support Article

PDF styling not working when run via agent

SA-37808

Summary



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
3.Call HTMLToPDF.
4.Call AttachToWork.


Root Cause



Latest PD4ML jar file is not present in the environment.

Resolution



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 11, 2017 - Updated May 24, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.