Converting section to PDF
I have a section, where onclicking of a button I need to open it in PDF fromat, any one please suggest ideas on it,
I saw options where they used HTMLToPDF whic requires a HTML rule.Is ther any othe way?
-
Like (0)
-

hi
HTMLTOPDF is the simple OOTB way.Include the section inside a Obj HTML and pass it as the param for the HTMLTOPDF activity.
thanks
Create HMTL fragment and include the section to be displayed inside the jsp tag in similar way mentioned below -
<pega:include name="SectionName" type="Rule-HTML-Section"/>
Use this HTML as param for HTMLTOPDF activity.
Hi,
I am new to Pega
Can you please show me how can we use this html.
I have created the HTML fragment like below
<pega:include name=ApprovalForm type=Rule-HTML-Section/>
I have seen three parameters in HTMLTOPDF activity
MarkUp
StreamName
Pdfdocument:
And where we can find the output PDF(Location)

The output is a object reference. you can use the VIEW activity to see the generated PDF or attach it directly to the work object with ".pdf" extension.

yes, while you use the view activity it will prompt you anyways whether to save the pdf locally or open.

Hi
Extending to the above
I have a requirement to generate PDF from the User input via a section. I have customized the GeneratePDF activity, and added CSS to generate the PDF as per the req. Now, I want the file to be opened in a print Window(like the Print Action) or window.print(); instead of getting a dialog to open/Save. Is there any suggestion other than writing a custom control?