40975e93e1913ab7c55e019f69d64b1f

Hello all

As the title says; I need to convert .pdf to .tiff. What is the best way of doing it? From there we can refactor it further!

Kind Regards

#?
import PIL
#?
import ghostscript
#?
import imagemagik

from all_of_these import the_best_way

Refactorings

No refactoring yet !

91eb330fb36d1e03c856574dfb77d2bc

Thibaut Barrère

October 21, 2008, October 21, 2008 15:17, permalink

No rating. Login to rate!

You can try using imagemagick command line:

convert file.pdf image%04d.tiff

40975e93e1913ab7c55e019f69d64b1f

setori88.myopenid.com

October 22, 2008, October 22, 2008 01:37, permalink

No rating. Login to rate!

wouldnt there be any other arguments like dpi, pagesize, device, etc?

40975e93e1913ab7c55e019f69d64b1f

setori88.myopenid.com

October 22, 2008, October 22, 2008 01:49, permalink

No rating. Login to rate!

when i run that command i get:
"The selected file is not a valid Microsoft Office Document Imaging file"
when i try to open it with the native ms tiff reader

any ideas?

91eb330fb36d1e03c856574dfb77d2bc

Thibaut Barrère

October 22, 2008, October 22, 2008 06:34, permalink

No rating. Login to rate!

Yes I guess you don't have imagemagick installed - the convert you're launching may be an office convert tool.

You'll have to install imagemagick, here for windows: http://www.imagemagick.org/script/binary-releases.php#windows

All the command line switches are here: http://www.imagemagick.org/script/convert.php

1cdab11f1fa4d990918a5aac64611929

Car Hire

April 20, 2011, April 20, 2011 08:37, permalink

No rating. Login to rate!

Appreaciate for the work you have put into this article, this helps clear up a few questions I had.

Your refactoring





Format Copy from initial code

or Cancel