This module adds PDF support to Gallery.
PDF requires Gallery v3.0.5 or newer. The API of older versions is not as flexible with adding PDF support.
The module includes PDF as a special "movie" type. As such, it requires that movie uploads be allowed (see the Admin | Settings | Movies menu).
Thumbnail generation requires Ghostscript to be installed. Ghostscript is an interpreter for the PostScript language and for PDF (see http://www.ghostscript.com).
The module will do its best to autodetect a Ghostscript installation, similar to how FFmpeg is detected. Although popular, Ghostscript is not installed on all Linux systems. To use Ghostscript without fully installing it, download a pre-compiled version (http://www.ghostscript.com/download/gsdnld.html). Then, rename the binary file to "gs" and put it in Gallery's "bin" directory (e.g. "/gallery3/bin"), where Gallery will auto-detect it.
If Ghostscript is unavailable or disabled, a PDF icon is used for thumbnails instead.
Gallery3:Modules:movie_overlay
If you use Movie Overlay, then by default it will include the same overlay atop PDFs. To hide this, check the "Hide movie overlay" option in the Admin | Settings | PDF screen. This feature has been tested with Movie Overlay v3.
If you have existing PDFs that were previously uploaded via the now-obsolete videos module, their mime types may have been set incorrectly in the database. The PDF module automatically corrects this during activation, correctly calling them "application/pdf".
Installing PDF is just like any other module:
Then, go to the Admin | Settings | PDF menu to check that the settings are as desired.
Initial release