user1017882
user1017882

Reputation:

Environment considerations for displaying a pdf in an iframe

I have a page with an iframe who's src attribute is assigned the path of a pdf file. I can verify it all works on my dev environment and I'm even testing this with the following mark-up:

<html>
<body>
<iframe src="hello.pdf" height="500px" width="500px"/>
</body>
</html>

This displays fine, but as soon as I move it to the test environment it's invoking the download dialog OR freezing the browser.

What I've Tried:

Upvotes: 0

Views: 130

Answers (1)

TheCodeKiller
TheCodeKiller

Reputation: 1965

I have performed some test on my side and it is fully working with a PDF. For me it is either related to your browser setting regarding management of pdf file (or application/pdf mimetype etc..) or either to your application server setting regarding handling of pdf file.

Upvotes: 2

Related Questions