Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Learn More

Show PDF on browser

more options

I am developer, I need show a pdf on modal, but is only downloading, I am using "iframe", is there possibilite can I do this? Only show.

I am developer, I need show a pdf on modal, but is only downloading, I am using "iframe", is there possibilite can I do this? Only show.
Přiložené obrázky

Všechny odpovědi (6)

more options

Hi mnpmateus, please ignore the spam message with a phone number -- that's not official and we don't know what they will do to your system if you engage.

more options

Hello,

You can use Google Doc :

<iframe src="https://docs.google.com/gview?url=https://path.com/yourpdf.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

But your file must be online.

Hope it helps. Thank You.

more options

If you need something to install on your own server, there is a web app version of the PDF viewer used in Firefox (pdf.js). More info at https://github.com/mozilla/pdf.js/

more options

Shashank Shekhar said

Hello, You can use Google Doc : <iframe src="https://docs.google.com/gview?url=https://path.com/yourpdf.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe> But your file must be online. Hope it helps. Thank You.

I am using this structure: <iframe width="100%" height="400px;" src="data:application/pdf;base64,#{pagamentoBean.txComprovanteBase64}" title="Comprovante de Pagamento"></iframe>

more options

jscher2000 said

If you need something to install on your own server, there is a web app version of the PDF viewer used in Firefox (pdf.js). More info at https://github.com/mozilla/pdf.js/

I am using this: <iframe width="100%" height="400px;" src="data:application/pdf;base64,#{pagamentoBean.txComprovanteBase64}" title="Comprovante de Pagamento"></iframe>

more options

Hi mnpmateus, when you ask Firefox to load a PDF either in the main frame or in an iframe, it will display there in the tab if the user has the setting "Preview in Firefox". Otherwise, it will save automatically or open externally. Is your Firefox not following your setting on the Options page? See: View PDF files in Firefox or choose another viewer