Rendering PDFs with pdf.js using HTML5 and JavaScript(deanhume.com)

submitted by deanomachinodeanomachino(764) 7 months, 13 days ago

A couple of clever guys over at Mozilla have thought about this and have come up with a genius way of displaying PDFs inside your browser using Javascript and HTML5. The code is available for download on Github. PDF.js is community-driven and supported by Mozilla Labs which means its good news for us as developers. In the long run this plugin is intended to render PDFs natively within Firefox itself and will eventually ship with Firefox. For now though, we can start using the power of this plugin within our applications today.

4 comments |category: |Views: 413

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by NoldorinNoldorin(829) 7 months, 12 days ago +2

This is pretty cool, yeah. Does it spell the beginning of a transition away from PDFs and fully to HTML5? The death of Adobe Reader perhaps?

Reply

posted by dpetersondpeterson(4397) 7 months, 13 days ago +1

I'm glad to see a viable alternative to security-hole-ridden plugins when it comes to PDFs. I just want to view my document, this gives me that.
I think this kills 2 birds as well, since plugins are no longer supported in IE in Windows 8 this could be the solution.

Reply

posted by bradygasterbradygaster(4897) 7 months, 12 days ago +1

I wish I'd had this on project x, project y... This could make life pretty easy for doing PDF output. I wonder about more complicated documents and if there's support for forms and some of the more rich/interactive aspects of PDF's. Not that those features are ones I've had to use very often; most times PDF is for output only and this looks like a GREAT option for that.

Reply

posted by vijaystvijayst(1311) 7 months, 12 days ago 0

I am curious to know how it works :) This is really good stuff.

Reply

information Login or create an account to comment on this story