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?
***Edited by Moderator Marissa to change Type from Discussion to Question***