Tag Archives: html5

car-ad

pdf.js: Interesting Project, Incorrect Rendering

pdf.js is a well known project for rendering PDF documents directly in the browser. In that sense, it is similar to our recently announced PDFNetJS. While pdf.js is interesting project, and may be a reasonable choice in some very specific situations, it has a number of serious problems that make it unreliable for any situation where PDF rendering is important.

Continue reading

How To Integrate a PDF Viewer into HTML5 Apps

HTML5 apps offer many of advantages over native ones. Web apps are

  • Naturally cross-platform: develop once, run on iOS, Android, Windows Phone and everything else.
  • Easy to update the app for everyone, immediately.
  • Do not have to go through Apple or Google to access customers (but you still can by embedding it into a native shell app)

But web apps suffer one big problem, and that’s the user experience.

Today, in 2013, even the best-crafted mobile web apps come nowhere near the quality of experience of the best native apps. In fact, with but a few exceptions, the best mobile web apps today still don’t approach the quality of the first batch of native iPhone apps from 2007.

John Gruber, Daring Fireball

One area of the user experience where HTML5 apps have been historically weak is in their ability to display a PDF within the app. For a long time, “viewing” a PDF on the web meant downloading it, and opening it in a different program. Next came browser PDF plugins, that would take over the browser screen in order to display the PDF. A small improvement, but still not integrated and certainly not a good user experience.

So, if the goal is to integrate PDF viewing into a web app, how can that be done? There are a number of approaches, each with pros and cons. Keep reading to see what techniques exist, and which might be best for your app.

Continue reading