Alternative solution to convert PDFs to JPG?

Usr/bin/evince-thumbnailer --help Usage: evince-thumbnailer OPTION... - GNOME Document Thumbnailer Help Options: -h, --help Show help options Application Options: -s, --size=SIZE It produces PNG's; easily converted. The -s SIZE option seems to represent the minimum dimension, preserving aspect-ratio.(A US Letter sized file at -s 128 for me produced 128×166 px PNG.) It's in the evince package.

Works for me on ( CentOS 5, Fedora 15, Fedora 16 )… – BRPocock Dec 14 at 17:00 I yummed it - yum install evince. – Roger990 Dec 14 at 17:20 Found something else though.... By using gs directly I've managed to get the all text PDF to convert, but does anyone know which option to give gs to specify a maximum dimension? The PDF in question is 1040x3700 and I want it to be a maximum of 80px for the thumbnail... Some PDFs could be wide or tall so I need a maximum stat.

– Roger990 Dec 14 at 17:22 Perhaps there's a permissions-related issue or similar? I presume your user has read permissions on the input and rwx permissions on the directory to contain the output (and rx on the path to that directory), &c (the usual suspects)? – BRPocock Dec 14 at 17:23.

Ok I found a solution. Forget about trying to get imagemagic to convert your PDFs. I've spent months on this and never found a solution.So instead do this.

Use gs directly to convert the PDF to a jpeg. Exec("gs -sDEVICE=jpeg -o $tmp_image -dJPEGQ=95 $pdf_name 2>&1"); with the tmp_image in place you can then run the imagemagic exec("convert -colorspace RGB ". $tmp_image.

" -geometry 80x80 -quality 100 ". $thumb_image." 2>&1"); remembering to unlick($tmp_image); to stop clutter. You should have your converted PDF.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions