Open Source Javascript PDF viewer [closed]
Asked Answered
V

5

57

Is there any open source Javascript based PDF Viewer available? Any guide to developing this kind of script that renders PDF docs would be helpful.

Valid answered 22/8, 2010 at 2:38 Comment(4)
I don't want to use the word "impossible", but suffice it to say that what you're looking for is impractical.Select
It is possible! 1. use javascript to display a popup telling them to download a reader 2. then use javascript to open the reader download page in a new window?Telepathy
Google Docs does this as it is. And you can embed them in web pages. I personally want to integrate this as a feature in my own sites as I've had problems creep in with Embedded Google Docs (mostly user error introduced by people maintaining sites I create).Barton
You can try this bloggerplugnplay.blogspot.in/2013/02/…Opuscule
S
60

There are some guys at Mozilla working on implementing a PDF reader using HTML5 and JavaScript. It is called pdf.js and one of the developers just made an interesting blog post about the project.

Soane answered 5/7, 2011 at 14:4 Comment(4)
Github: github.com/mozilla/pdf.js, Demo: mozilla.github.io/pdf.js/web/viewer.htmlWormhole
Does anyone know how to actually implement this? I'm finding it really hard to work out?? Are there any step by step guides out there?Jegger
PDF.js v1.0.58 (build: ee545dd) Message: Unexpected server response (204) while retrieving PDF "http://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf".Venery
@Jegger In case you or anyone else still needs this: mozilla.github.io/pdf.js/examples this has some useful docs in it, as does their examples stored on the github: github.com/mozilla/pdf.js/tree/master/examples/helloworld (see parent directory to helloworld as well for even more examples)Contingent
H
15

There is an open source HTML5/javascript reader available called Trapeze though its still in its early stages.

Demo site: https://brendandahl.github.io/trapeze-reader/demos/

Github page: https://github.com/brendandahl/trapeze-reader

Disclaimer: I'm the author.

Haematocele answered 17/6, 2011 at 3:35 Comment(1)
The permalink http://trapeze.xyrka.com/ does not workRiggle
S
9

You can use the Google Docs PDF-viewing widget, if you don't mind having them host the "application" itself.

I had more suggestions, but stack overflow only lets me post one hyperlink as a new user, sorry.

Sprag answered 22/8, 2010 at 2:58 Comment(1)
What about right now?Evangelist
K
4

Well it's not even close to the full spec, but there is a JavaScript and Canvas based PDF viewer out there.

Kaleighkalends answered 23/8, 2010 at 12:28 Comment(0)
A
4

Check out the HTML5 PDF viewer:

http://flexpaper.devaldi.com/demo/

Affluent answered 1/8, 2011 at 11:55 Comment(1)
The GPL version only displays PDFs with a Flash viewer, and it is needed that the PDFs are compressed. For on the fly compression it is needed to install SWFTools on the server.Batsheva

© 2022 - 2024 — McMap. All rights reserved.