View Single Post
Old 10-07-2012, 02:42 PM   PM User | #6
patryk
Regular Coder

 
patryk's Avatar
 
Join Date: Oct 2012
Location: /dev/couch
Posts: 395
Thanks: 2
Thanked 64 Times in 64 Posts
patryk is on a distinguished road
just to keep this a bit relevent to web development:
simplest way to do that is using 'convert' from ImageMagik.

shell:
Code:
convert input.jpg output.pdf
php:
Code:
shell_exec('convert input.jpg output.pdf')
or using api if you can't execute shell commands
(manual: http://php.net/manual/en/book.imagick.php)
patryk is offline   Reply With Quote