Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

pdf.js integration for Plone

Project Description

collective.pdfjs - Plone integration for Mozilla’s JavaScript PDF reader

Rigel Di Scala <zedr@zedr.com>

Introduction

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;

Installation

Use Buildout. Take a look at docs/INSTALL.txt

Usage

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.

Additional information

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.

Contact

Rigel Di Scala <zedr@zedr.com> http://github.com/zedr

Changelog

0.4.3

  • Missing directory images/ in the distribution

0.4.0

  • Tests: basic code coverage
  • Reasonably minified pdf.js

0.3.6

  • Minified pdf.min.js
  • Tested on Chrome and Firefox

0.2.2

  • Renders the Tracemonkey PDF
Release History

Release History

This version
History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.2b

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.pdfjs-0.4.3.tar.gz (587.4 kB) Copy SHA256 Checksum SHA256 Source Nov 13, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting