Chandrasekhar Allampati (allac)
Principal Solutions Engineer
Pegasystems Inc.
allac Member since 2017 10 posts
Posted: March 19, 2019
Last activity: November 19, 2019
Posted: 19 Mar 2019 10:52 EDT
Last activity: 19 Nov 2019 5:23 EST

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

Hi Everyone,

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


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.


Low-Code App Development Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.