Ninjakreborn Posted October 16, 2008 Share Posted October 16, 2008 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 https://forums.phpfreaks.com/topic/128739-question-about-pdf-embedding-with-object-tag/ Share on other sites More sharing options...
haku Posted October 17, 2008 Share Posted October 17, 2008 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 https://forums.phpfreaks.com/topic/128739-question-about-pdf-embedding-with-object-tag/#findComment-667647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.