This product adds pdf.js support for Plone.
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;
Using zc.buildout add
collective.pdfjs to the list of eggs to install:
[instance] recipe = plone.recipe.zope2instance ... eggs = ... collective.pdfjs
Re-run buildout, e.g. with:
Restart your plone instance and install this addon.
Currently, the whole document is downloaded and each page 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.
Source Code and Contributions
If you want to help with the development (improvement, update, bug-fixing, ...)
collective.pdfjs this is a great idea!
The code is located in the github collective.
You can clone it or get access to the github-collective and work directly on the project.