Does <object>
tag widely supported in mobile browser?! I'm trying to embed a PDF file but it seems that it is not supported.
I'm using the following html for viewing PDF
<object data="pdf/sample.pdf#view=Fit" type="application/pdf" width="100%" height="400px">
<p>It appears you don't have Adobe Reader or PDF support in this web browser. <a rel="external" href="pdf/sample.pdf">Click here to download the PDF</a></p>
</object>
and using the PDFObject but both of them are not working in mobile browsers!
If embedding isn't important to you you could just link to the PDF on a seperate page.
Safari (and UIWebViews) supports the rendering of PDFs, im not a 100% sure about Android but I suspect its a similar story.