Saturday, June 9, 2018

Pega PRPC PDF Generation - 1

Pega Default functionality:

In Pega PRPC,  Flow Rule Pega had given Smart Shape by default.
as utility, which will generate a PDF and attach to the Work Object, in this session we will see, using the same functionality how we can download file.

In this, we will see how to generate PDF using the default functionality and download the Generated PDF File.

Consider a scenario:
On click of on button, we need to generate a displayed section to PDF.

Steps to follow:
1. On click of button, in the onClick function, we need to call an activity.
2. In Activity will three steps.
   a.need to pass HTML name Property-Set-HTML to method for creating the HTML with the required values from the Clipboard page.
   b. the returned html need to be passed into the default activity - Call HTMLToPDF.
   c. down the generated file as PDF.






and step 3:


This will download the PDF file.

Note: Please let me know in the comments if any thing need to Change/Modify.