NYCPHP Meetup

NYPHP.org

[nycphp-talk] JPEG Preview of PDFs

Scott Mattocks scott at crisscott.com
Thu May 7 09:32:14 EDT 2009


Peter Sawczynec wrote:
> I need on file upload to grab the uploaded PDF 
> and generate a JPEG preview of page 1 of that PDF.

exec('/usr/bin/convert /path/to/pdf.pdf[0] /path/to/image.jpg');

-- 
Scott Mattocks
Author: Pro PHP-GTK
http://www.crisscott.com



More information about the talk mailing list