Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
Summary: This is really cool, and a really good idea. Mozilla is working on a project that will allow PDF documents to be rendered within the browser using HTML5 and JavaScript as opposed to having to rely on a separate plug-in.
This is really cool, and a really good idea. Mozilla is working on a project that will allow PDF documents to be rendered within the browser using HTML5 and JavaScript as opposed to having to rely on a separate plug-in.
Mozilla researcher Dr. Andreas Gal, working on JavaScript and Web research, spills the beans:
We have been developing pdf.js in the open (on github.com), albeit quietly, for about a month now. We were waiting on the completion of some major features (Type1 fonts, gradients, etc.) before communicating pdf.js more broadly. We've been taken by surprise by the early and intense interest in our work, so we decided to blog and talk about our project earlier than we initially planned.
This is a truly awesome idea. It has so many benefits that it's a total no-brainer. Not only does it remove the need for a third-party plug-in or readers, but the built-in reader can also leverage web features such as HTTP range requests. On top of that it also means a unified user interface for dealing with PDFs, and possibly makes handling PDFs found on the web a lot safer as the documents can all be sandboxed within the browser. Also, the open-source nature of the implementation should make is more secure (more eyes on the code and all that).
This could also be an awesome feature for mobile platforms.
Check out pdf.js in action here. It's not perfect but it's still pretty neat and shows a lot of potential.
Bottom line, it's a feature all modern browsers should have.
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.
Talkback
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
In IE9 it doesn't work.
Think I'll stick with my plug-in thanks.
Not finished Yet
Dude/dudette, it's still in development..
My goodness, would you go to the bike factory and say that you don't want a bike just by looking at an empty frame?
And, for Macs, it is not needed since PDF renderer is built in the OS
Given IEs poor HTML5 support it's not surprising
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
Thse features you request are no problem, since PDF format is just a markup language itself. You will be able to use the Adobe plugin (or alternatives) if you desire.
This is kind of goofy
A much better approach would be to (in javascript or otherwise), interpret the PDF to SVG, and then use Firefox's innate SVG viewing capabilities to view the resulting file.
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
Modern HTML provides subpixel specific content placement.
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
The trouble I experimented with PDF to SVG conversion, is the big size of the resulting SVG (even with GZ compression), of course Binary XML with compression could come to the rescue but the browsers are not supporting it yet.
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
Could not agree more its shocking, I do wonder how adobe can continue to churn out the rubbish which is Adobe reader and adobe flash player
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
Also agreed. I quit the plugin route entirely and open PDFs externally by having Firefox go through Windows to call up a lightweight PDF reader app on my own system -- it's still faster than using the in-browser Adobe Reader plugin.
It's everywhere
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox
RE: Mozilla planning to use HTML5 and JavaScript to render PDFs in Firefox