Question
PDF Styling Issues when run via agent
Hi,
I am having issues with pdf styling for Work items.
Using Pega OOTB activities HTMLTOPDF and ATTACHTOWORK to attach a pdf to the work item.
If I run the activity via Declare Trigger, the styles are correctly applied.
If I use Queue-For-Agent, no styles are applied to the pdf.
If I run the activity from designer studio, the pdf is generated with grey background.
Environment : Pega 7.1.9
Already tried below work around but it does not work for me.
https://pdn.pega.com/community/product-support/question/pdf-generation-issue-through-standard-agent
The below link says this issue was fixed in 7.1.6 , but I am still facing this issue in 7.1.9
https://pdn.pega.com/support-articles/export-pdf-generates-pdf-files-without-any-styles
***4/7/17, edited by moderator, Maryrita: moved from Upgrade Center to Product Support***
***Updated by Moderator: Marissa to update categories***
Hello,
My guess is that the problem is in the stream being passed to HTML2PDF. The first thing that comes to mind is to trace the agent to confirm that it is seeing your custom rules/rulesets. If it is, I'd look into the stream that's being passed into the HTML2PDF code. Does it include your styles? I'd compare that to running it interactively. Do you see your styles in the stream there?
Thanks,
Mike