Path

ez projects / snapshotpdf


SnapshotPDF

UNIX name Owner Status Version Compatible with
snapshotpdf Felix Laate stable 0.2 3.7.x (and maybe others)

This is a version of the Snapshot extesion that grabs a page from a pdf
and saves it as a jpg at a specified location. It then return the
path to the jpg.
It uses Ghostscript for the conversion.

1. Installation
---------------------
a) Install Ghostscript if not allready installed.
b) Follow these steps to add the SnapshotPDF datatype to your ezp
installation:
1) Extract the archive into the /extension directory
2) Activate in the admin interface
c) Configure the snapshot.ini.append.php file to specify where you want
the images to be saved. Don't forget chmod'ing :-)
2. Features
------------------
- grabs a page of a pdf and save it as a jpg
- returns the path of the jpg
3. Usage
--------------
ezsnapshotpdf(path_to_pdf_file,page_to_get_grabbed,width,height)
(width and height are optional)
This is an example of usage in a template:
Read
PDF
4. ToDo
-------------
- add resizing
- add adjustable quality (which at the time of writing is rather poor)

 

Screenshot

This project has no reviews yet. Be the first one to review it!

No forum messages yet.