Skip to main content

A Plone product that provides the PDF viewer FlexPaper.

Project description

Introduction

This package is a Plone product that will add a Page Turner view to the PDF File content type. The result is that you’ll be able to view PDFs much in the same way you can view them on scribd.com. It uses the open source project, Flex Paper, to display the PDFs. You can find information about it at http://flexpaper.devaldi.com/.

Requirements

This product requires that you have pdf2swf installed. pdf2swf is included with SWFTools. I suggest you stick with the package managers to install this as there are some dependencies that need to be installed.

If you’re using Ubuntu Lucid, the swftools package should now be in the package repositories now:

# sudo apt-get install swftools

On Mac, if you have MacPorts installed you can,

# sudo port install swftools

On Debian, you’ll need to install from source as the swftools package does not include pdf2swf: http://wiki.swftools.org/wiki/Installation

If all else fails, you can download SWF tools from http://www.swftools.org/ and install it yourself.

Windows Users

Make sure pdf2swf.exe is in your path otherwise this product won’t work.

How-To

  • Add your PDF as a file to your Plone site.

  • Edit the various setting of the Page turner by clicking the Page Turner Settings button that is now available

  • To turn off auto-selecting of the page turner layout for PDF files, go to ZMI -> portal_properties -> site_properties and customize the page_turner_auto_select_layout property to off.

Tested With

  • Plone 3 and 4

  • Also works with Blob storage transparently so the converted PDFs aren’t stored in the ZODB

Credits

Credit goes to Wildcard corp and Talin Senner for sponsoring and designing the product and Nathan Van Gheem for coding it.

Asynchronous Conversion

With large PDFs the conversion to Flex Paper can take some time. If you have plone.app.async installed and configured, this conversion will now happen in asynchronously.

Convert All

If you’d like to convert all the existing documents on your site, visit the url, http://www.yoursite.com/@@convertall-to-flexpaper

TODO

  • Add supoort for dexterity content types. Maybe via a behavior

Versions

Flexpaper: 1.5.1

Changelog

1.3.5 ~ 2013-05-07

  • Remove zope.app.* dependencies. [esteele]

1.3.4 ~ 2012-10-02

  • add back 1.3.2 change that was missed [vangheem]

1.3.3 ~ 2012-10-02

  • changed ‘cachebusting’ to be false for all browsers [Joel.Kleier]

1.3.2 ~ 2012-07-31

  • fix wmode used

1.3.1 ~ 2012-06-19

  • fix uninstall profile

1.3.0 ~ 2012-04-11

  • upgrade to flexpaper 1.5.1

1.2.5 ~ 2012-04-06

  • fix js error when rendering pdf. [vangheem]

1.2.4 ~ 2011-10-16

  • Plone 4.1 fix [vangheem]

1.2.3 ~ 2011-07-28

  • fix default value for fit_width so the global setting will work now. [vangheem]

1.2.2 ~ 2011-04-01

  • reference some of the resources off the portal root [vangheem]

1.2.1rc2 ~ 2011-04-01

  • fixes for windows users. [fhurter]

1.2.1rc1 ~ 2011-03-14

  • fit page width for flex paper setting integration [espen]

1.2b1 ~ 2011-02-20

  • re-convert pdf is password is provided on save of page turner settings

1.2a1 ~ 2011-02-15

  • provide global settings configuration

  • provide ability to enter password for encrypted pdf

  • provide ability to convert all pdfs on the site to flex paper

1.1b1 ~ 2010-12-31

  • work seamlessly with new version of wildcard.pdfpal so it will only create a flex paper after the new searchable PDF is provided.

  • provide ability to provide extra command line options when converting the PDF.

1.0b4 ~ 2010-12-06

  • add wmode transparent for flash params so that flash does not overlap other elements.

  • switch to more accurate time format

  • remove temp files even when there was an error

1.0b3 ~ 2010-12-02

  • remove tmp files after using them on flex paper gen

1.0b2 ~ 2010-12-02

  • added support for plone.app.async. Flex Paper conversion can now happen in the background. [vangheem]

1.0b1 ~ 2010-11-29

  • update flexpaper to 1.4.0 [vangheem]

  • auto select page turner view for pdf files now and make configurable via portal_properties -> site_properties [vangheem]

  • better error checking when converting PDFs. pdf2swf still seems very touchy for converting some PDFs… [vangheem]

  • Added progressive loading, print enabled, full screen visible, search tools visible and cursor tools visible options [vangheem]

0.6

  • Fix for storing blobs. [davisagli]

  • Don’t swallow exceptions while converting; log them. [davisagli]

  • Use the subprocess module instead of popen2 to communicate with pdf2swf. [davisagli]

  • Protect the page turner settings page with the “Modify view template” permission. [davisagli]

  • Avoid purging existing view methods for the File type on installation. [davisagli]

0.5 ~ 2010-05-21

  • Initial release

Road Map

1.0

  • option to automatically enable the page turner view if PDF format is detected for a new file

  • support other formats besides PDF–is this possible?

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

wc.pageturner-1.3.5.zip (454.7 kB view hashes)

Uploaded source

Supported by

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