Rigel Di Scala <[email protected]>
This product adds pdf.js support for Plone.
Pdf.js is a JavaScript library for rendering PDF documents in the canvas, without using external plugins; only JavaScript is needed.
This product will make the JavaScript library available as a resource, and add a new view for the File content type.
Please note that pdf.js is still under heavy development; as such:
- a modern browser is required;
- not all PDFs may be rendered correctly, or at all;
Use Buildout. Take a look at docs/INSTALL.txt
If the view detects a PDF file, it will attempt to render it inline using pdf.js. If the user browser doesn't have JavaScript enabled, it will embed any available PDF reader plugin (Acrobat's, Google Chrome native, etc) instead.
Currently, the whole document is downloaded and each oage rendered incrementally inside the canvas. This means that big files on slow connections will take a while before displaying; you might want to switch to the standard view in this case.
Rigel Di Scala <[email protected]> http://github.com/zedr