Question

3
Replies
232
Views
allac Member since 2017 9 posts
PEGA
Posted: 1 year ago
Last activity: 8 months 3 weeks ago

"HTMLToPDF" Behaving wired(Generating PDF with no content)

Hi Everyone,

I have requirement to generate PDF and implemented functionality, but it behaving wired.

Requirement:

When user select update action, popup window should open and after updating data and submit , PDF should be generated with updated data and attached to work object

Below are the steps which i have done in implementation.

1.Created PDF content as section rule in required format.

2.Created HTML Rule and included section rule inside HTML rule.

3. Created Activity in which called "HTMLToPDF" activity for generating PDF Byes by passing HTML rule as Stream for PDF.

4. Created flow action and used activity in post action to generate PDF .

Here PDF is generating with empty Content if i use "generatePDF" activity in flow action. But if i use Activity as separate action after local action using "Run Activity" its working as expected.

In both scenario, activity running in "pyWorkPage" context only, but "HTMLToPDF" generating different markup for PDF and Empty PDF generated.

I have attached document with screenshots and markup data which "HTMLToPDF" generated in both scenarios.

Please help on this.

-Chandu

Low-Code App Development Case Management
Share this page LinkedIn