0

I am going to develop a online document viewer. There are two most popular way to do it. One is the traditional flash way using pdf2swf.exe and flex. The other is a newer way using HTML5 and js based on the opensource pdf.js. I am wondering which way is more reliable and efficient. Since the html5 and js way is a lighter way but the process is heavily relying on JS which seems not really efficient and not better supported by browser such as IE 8 (which is used by some our clients). We not really care about the SEO problem therefore, flash way seems more appropriate.

So please help me compare these two approach and is there any other better way? My purpose is to simply display and preview the document.

Btw, I looked at the groupdocs as well since is not a free services...but it is still can be considered.

Alvin
  • 151
  • 2
  • 15
  • Most browsers support embedded PDF support either built-in or using a plugin. You only need to add an `` tag pointed to the file. I did a quick search for the embed syntax and this SO question came up; it looks like it might help: http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html – Malk Dec 23 '13 at 21:41
  • @Malk thanks for your reply. Yes embed can preview the pdf, but I need embed the pdf preview in the html, so dont think that going to work. – Alvin Dec 23 '13 at 23:13
  • Yes it can do it, but you need to do it so you don't think it will work? You lost me, good luck! Oh, here's a fiddle: http://jsfiddle.net/8Z7aN/ – Malk Dec 23 '13 at 23:28

0 Answers0