Postmessage To Pdf In An Iframe November 25, 2023 Post a Comment Here's my situation. I had a webpage with an embedded PDF form. We used a basic object tag (embed in FF) to load the PDF file like this: Solution 1: For Internet Explorer, use:<object id="pdfForm"type="application/pdf" data="yourPDF.pdf"></object> CopyFor Firefox, use: <embed id="pdfForm"type="application/pdf" src="yourPDF.pdf"></embed> CopySolution 2: you can also gain access to the embed object with thisBaca JugaHow To Convert Numbers To Word In Indian Currency FormatHow To Implement Ctrl Click Behavior To Copy Text From An Embedded Pdf In A Webapp?PostMessage To PDF In An IFramevar emb = document.getElementsByTagName("EMBED")[0]; Copybut you'll be running that code from the containing page so get a reference to the iframe instead of just calling it on document. Share You may like these postsHow Can I Force A "save As" Option When The User Clicks A LinkHow To Set Number Of Copies Getprintparams()Open Local Pdf File From A Local Html FileOpen Pdf Using Phone Gap Post a Comment for "Postmessage To Pdf In An Iframe"