Home Mozilla Working on pdf.js, Will Render PDFs in HTML5

Mozilla Working on pdf.js, Will Render PDFs in HTML5

Mozilla is working on technology that will allow PDF documents to be rendered within the browser, rather than utilizing a browser plug-in or an external app to open them. On his blog, Mozilla researcher Andreas Gal has described the project to build a PDF reader in HTML5 and JavaScript.

Typically, PDFs are rendered in a browser with a plugin – either with Adobe’s own PDF reader or with another provider’s renderer. These plugins often cannot take full advantage of PDF features. Furthermore, as Gal points out, there is quite a large trusted code base, something that’s forced the Google Chrome browser to have sandbox the PDF renderer in order to avoid code injection attacks. An HTML5 version would be make this more secure, as would the open source nature of the project.

Gal says that Mozilla has been working on pdf.js for about a month. (You can find the GitHub repo here.) The work has been in the open, but on the down low if you will. “We were waiting on the completion of some major features (Type1 fonts, gradients, etc.) before communicating pdf.js more broadly.” There’s still work to be done on the project, according to Gal, and the plan is to use pdf.js to render PDFs “natively” within Firefox.

“It’s important to note that we’re not trying to promote PDF to a first-class web citizen like HTML5 is,” writes Gal. “Instead we hope that a browser-native PDF renderer written on the web platform allows web technologies to subsume PDF.” But with the ubiquity of the PDF, it’s great news – particularly for the mobile Web – that it may soon be easier to view PDFs natively in the browser.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.