JAYS
JAYS

Reputation: 1

Problem embedding pdf files in html

My website currently embeds pdf files. although resently, after a update or new gpo push, when i view the website in IE 9 or IE 8 the pdfs will launch in adobe reader independently outside of the website verses within the webpage. Embedding works fine when i launch the site within firefox. the page loads currently with IE 7.

Any suggestions on how to troubleshoot this issue would be appreciate it.

Upvotes: 0

Views: 204

Answers (1)

m.edmondson
m.edmondson

Reputation: 30862

By embedding what exactly do you mean? Within an iFrame or simply within the browser window? Does the url end with .pdf?

I believe your problem is linked with the HTTP headers being passed with the PDF - this usually allows you to request what the browser does with the file (Prompt for download, display in window etc).

You need to look at the Content-Disposition header - this article should put you in the correct direction.

Upvotes: 1

Related Questions