<object width="400" height="500" type="application/pdf" data="/my_pdf.pdf?#zoom=85&scrollbar=0&toolbar=0&navpanes=0"><p>Insert your error message here, if the PDF cannot be displayed.</p></object>
<object data="http://yoursite.com/the.pdf" type="application/pdf" width="750px" height="750px"><embed src="http://yoursite.com/the.pdf" type="application/pdf"><p>This browser does not support PDFs. Please download the PDF to view it: <a href="http://yoursite.com/the.pdf">Download PDF</a>.</p></embed></object>
var transferData = getFormAsJson()if (isMicrosoftBrowser()) {// Case IE / Edge (because doesn't recoginzie Pdf-Base64 use Iframe)var form = document.getElementById('pdf-helper-form');$("#pdfHelperTransferData").val(transferData);form.target = "iframe-pdf-shower";form.action = "serverSideFunctonWhichWritesPdfinResponse";form.submit();} else {// Case non IE use Object tag instead of iframe$.ajax({url: "serverSideFunctonWhichRetrivesPdfAsBase64",type: "post",data: { downloadHelperTransferData: transferData },success: function (result) {$("#object-pdf-shower").attr("data", result);}})}
const pdfBase64 = //fetched from url or generated with jspdf or other library
<embedsrc={pdfBase64}width="500"height="375"type="application/pdf"></embed>