The Flexpaper module provides the formatter for File field which is used for showing pdf files using Devaldi FlexPaper pdf reader.

Version info

Version 2.x supports both Flexpaper Zine version and Flexpaper classic viewer (including adaptive UI and GPL versions).

Old 1.x versions support GPL version only. Live example of this version

About This module

This module provides field formatter for File fields. This formatter serves for displaying PDF files in beautiful adaptive flipbook, using Devaldi Flexpaper library. You can see demos here http://flexpaper.devaldi.com/demo.jsp

Commercial versions of Flexpaper viewer supports 3 ways of displaying: html5, flash and html4. GPL version works only in flash mode. Adaptive UI maybe used only with html5/html4 modes, so GPL package doesn't provide this opportunity.

HTML5 version requires nothing except pdf file itself. Flash mode uses specially prepared .swf files to operate. And html4 needs .png files. This module takes care of it and prepares all needed files using pdf2swf and swfrender tools which are parts of Swftools utilities collection (see the installation guide). In order to standardize the module work, we require Swftools to be installed on your server even though you may need only html5 version.

Documents in flash mode can be loaded in two ways: as one swf file per whole pdf file and as one swf file per the document page (see formatter settings). In order to provide correct way to search the text using Flexpaper search tool, Flexpaper takes json file generated by pdf2json tool (see the installation guide).

Requirements

1. Swftools should be installed on your server. pdf2swf and swfrender tools should be available from command line.
2. In order to provide correct way to search a text your server should also have pdf2json tool installed and available from command line.
3. Your server should support exec() and shell_exec() functions to run commands.

Installation

1. Install Swftools. See how to do it here.
2. Install pdf2json tool.
3. Install and enable Libraries API module.
4. Create flexpaper folder in the libraries directory. Download needed Flexpaper webpackage version from your account download page (in case of commercial version) or GPL version from here http://flexpaper.devaldi.com/download. There are many folders in the package. You need only js, css, locale folders and FlexPaperViewer.swf file. Copy it into this flexpaper folder.
5. Enable Flexpaper module.
6. Check admin/config/flexpaper and set proper paths to pdf2swf, swfrender, pdf2json tools. You should also set up your license key in there (or may leave it empty in case of GPL version).
7. (Optional) Check permissions page to allow users to generate SWF files on the first node view.

Tips for swftools installation.

A lot of people have troubles with installation of swftools package. Despite it has pretty good installation guide, described here, you may still have errors during compiling process. Here is a list of libraries, which allows us to build swftools succesfully:
1. zlib. Version 1.2.8.
2. Freetype. Version 2.4.0.
3. libjpeg. Version 9.
You shouldn't have problems with compiling of these libraries in debian-like systems. However, you may still have problems in CentOS. For CentOS try to install freetype-dev and libjpeg-dev packages from EPEL repo.

Project information

Releases