Blog
Welcome to the Trioro Tech Blog.
On this blog we post some of the technical challenges and solutions that we've come across. From time to time we also post comments on new technology that we've come across.

Tuesday, February 26, 2008

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">
<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 working almost across the board - provided that you had the Adobe PDF Viewer plugin installed on your Mac.
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: , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home