Question

"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

Comments

Keep up to date on this post and subscribe to comments

Pega
April 3, 2019 - 1:09am

Hello Chandu,

 

The first thing to do here is to trace the working and non-working scenarios and compare the traces to locate differences.

You may also review the security tab of the "generatePDF" activity and test different combinations.

 

Thank you,
Pawan

November 19, 2019 - 2:04am

Hi Chandu,

I am also facing the same issue in application. Could you please help me with fix .

Regards,
Bharath

November 19, 2019 - 5:23am
Response to BharathK3612

Hi @BharathK3612 -

Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write Post button here. Once created, please reply here with the URL of the new post.

You may also refer this discussion link as a reference in the new thread.

Vidyaranjan | Community Moderator | Pegasystems Inc.