Safari inline PDF files (Part 2)

I originally blogged about this about 6 months ago.
Since then I've discovered a few things have changed.
This tag now works in Safari for displaying an inline PDF.
<object data="pdffile.pdf" type="application/pdf"></object>
If you care... here's the background:
I was using this code:
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000">This was working almost across the board - provided that you had the Adobe PDF Viewer plugin installed on your Mac.
<param name="src" value="pdffilename.pdf">
<embed src="pdffilename.pdf" width="200" height="300"></embed>
<noembed>PDFs are not supported by your browser.</noembed>
</object>
This was not working for Firefox on the Mac.
Recent tests show that this code doesn't work any more and the snippit I gave at the beginning of this post solves the problem.
Firefox on the Mac is still unhappy with trying to pull of inline PDF files.
Apparently this plugin will solve that issue. However, I haven't tested that myself.
My solution was to do some browser detection and give people a link to download the pdf if they are using Firefox on the Mac.
Labels: mac, safari issues, windows mac integration

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home