Skip to main content

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.3.0dev (unreleased)

  • Initial release

Project details


Download files

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

Source Distribution

collective.pdfjs-0.3.6.tar.gz (583.9 kB view details)

Uploaded Source

File details

Details for the file collective.pdfjs-0.3.6.tar.gz.

File metadata

File hashes

Hashes for collective.pdfjs-0.3.6.tar.gz
Algorithm Hash digest
SHA256 df2b384a7c11b2b92b02b1303121a60897f4f2eafba5c9f27256a5be95ddc8df
MD5 a5dfeb7883d5fb4d9c44dec8901f7efe
BLAKE2b-256 c7e81e48931513fce9860f7cb3ae3a88f981f61def6caa3744f32538eb46846f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page