Last activity: 18 Jun 2021 10:11 EDT
Preview the attached PDF in modal dialog on click of button.
I have the requirement to show the preview of user attached PDF file on click of a button (modal dialog).
On Preview, it should not show download option. User can ONLY preview.
Is there any OOTB solution for this?
Currently we have used iframe logic inside HTML section to display a static PDF file. But the requirement is to read the PDF attached by user in the Preview on click of Button.
<iframe onload="this.style.visibility = 'visible';" src="testpdf\TestPDF.pdf#toolbar=0" width="100%" height="500" scrolling="yes" style="visibility:hidden;border-width:2px;border-style:dotted;border-color:#555555;" frameborder="0" allowfullscreen >TestPDF.</iframe>
src inside iframe should take the dynamic PDF attached by user.