Posted: 4 May 2016 14:57 EDT Last activity: 4 Oct 2018 13:54 EDT
How to 'View as PDF'?
I need to implement an action on my case similar to the "View as PDF" as seen on discussion threads here:
But I don't know where to start to configure this. What is behind this button/link? What do I need to create? A harness? New CSS stylesheet? How do I format the sections the way I need them to display? I would like, as much as possible to just reuse the same sections as laid out on the screen, but sometimes need to adjust for page width.
I could really use a general introduction to generating PDF. I found some activities that might apply, but have no idea which to use/when, or what to put in the required parameters.
I am in version 7.1.8.
Thanks in advance.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
HTMLtoPDF is the activity which will be needed to generate the pdf, Pega uses the third party tool pd4ml to generate the following pdf file. If you can share more on what section you are planning to show as pdf I will try to help.
Thank you for the video. But I really need to start even more at the beginning - where do I call this activity from? Directly from the actions on my Link control? Sorry, I really am a newbie on this topic!
I essentially need to print an entire work item, including the complete request details we received and the history of all actions taken. We have everything laid out in dynamic layouts (including many fairly wide grids), which would need to be adjusted for a fixed page width.
Thank you for you reply. I tried to use activity pyViewAsPDF, but I do not understand what is needed in the parameter "HTMLstream", nor what is meant by "markup" as a parameter to HTMLtoPDF.
I really do need to start at the VERY beginning! (Sorry:-S) As in, I have a link in a section called "Print to PDF" - what do I put in the click Actions of this link?. And once I get something to generate, then I'll need to adjust the formatting so it fits neatly on a page.
Any guidance you can provide is greatly appreciated!
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 a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.