Question
Evonsys
IN
Last activity: 12 Jan 2022 15:00 EST
PDF file getting closed very soon instead of allowing us to preview the file Pega 7.2
Hi Team,
We have a requirement to just preview the pdf file on click of a link and no need of downloading the file in the system.
Existing Functionality uses DisplayPDFFile(Activity) - > Downloadfile (Pega Final Activity)
We made a minor change to the Java code in Downloadfile and able to achieve not to download the file,but we see the PDF file opened is automatically getting closed after few seconds,Hence the user will not able to preview the document as expected.
Aware that in Pega 8,We have Preview feature,But In pega 7.2 with the current code,Is there a way to achieve this in that Java code written in Downloadfile without the PDF file getting closed automatically?
Ideas appreciated!
Thanks,
Dhana