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>

Link to comment
Share on other sites

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'.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.