Jump to content

Question about PDF embedding with Object Tag


Ninjakreborn

Recommended Posts

Basically the following code is suppose to:

* Display PDF file into browser

* If object is not supported by that specific browser then provide the PDF via download instead.

 

The following code works correctly in Internet Explorer 7 (and 6) but in Firefox it's not showing the PDF. Any advice?

<object data="http://www.domainname.com/FamilyChoice/7Mistakes.pdf" type="application/pdf" width="700" height="700">
Your browser does not support live streaming.  Download the file directly from the following link: <a href="7Mistakes.pdf" title="Download">Download</a> 
</object>

Does it have to be embedded in a page? If you just upload the file to the browser, and then link to that file, the .pdf will display in the browser. Ex:

 

www.site.com/file.pdf

 

This will open the pdf in the browser. It won't be embedded in a page though, it will just be its own 'page'.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.