Forums
This topic is locked
Displaying pdf in web page
Posted 01 Oct 2007 18:11:20
1
has voted
01 Oct 2007 18:11:20 Suzi Sunshine posted:
Hello,I am attempting to display a .pdf file within an html page on a web site I am building using Dreamweaver MX. I tried using the older EMBED tag within a basic html page and the OBJECT tag in an xhtml compliant page. I have included the code below. Both work great so long as I am previewing them in Firefox or IE on my machine without being connected to the web server on which I am building the site. However, when I attempt to preview the same pages using the same code on the server, the pdf doesn't show up. Since it works on my machine, I am assuming my code and my browsers are not the problem. What could be wrong?
Here's the code.
HTML page:
<pre id=code><font face=courier size=2 id=code>
<EMBED src="images/MISC/AVAILSPECIALS2005AUG16.pdf" width="900" height="750" border="3" href="images/MISC/AVAILSPECIALS1005AUG16.pdf"></EMBED>
</font id=code></pre id=code>
XHTML compliant page:
<pre id=code><font face=courier size=2 id=code>
<object data="images/MISC/AVAILSPECIALS2005AUG16.pdf" type="application/pdf" width="900" height="750" ></object>
</font id=code></pre id=code>
Thank you!
~Suzi Sunshine~