PDF files in Pega PDF File inline view download as HTML
We use below Java function to preview Files. (This Activity call inside a HTML section and isDownload set to false since we need to preview)
tools.sendFile(tools.findPage("TempFile"),"pyAttachStream",true,"pxAttachName",null,true,null,IsDownload);
When click of a button as mentioned in below image its preview successfully.
But when click on download its Save as HTML as mentioned below.
Any idea on how to fix this issue?
***Edited by Moderator Rupashree to add Capability tags***
To see attachments, please log in.