Discussion:
How to convert a pdf into multiple tifs (each pdf page per tif) with given resolution (say 400 dpi)?
Peng Yu
2011-04-14 04:58:21 UTC
Permalink
Hi,

I want to convert a pdf into multiple tifs (each pdf page per tif)
with given resolution (say 400 dpi). I've tried a few command line
arguments. But I can't get the correct ones. Could you let me know how
to do this task with convert? Thanks!
--
Regards,
Peng
Fred Weinhaus
2011-04-14 21:32:57 UTC
Permalink
try

convert -density 400 -units pixelsperinch image.pdf +adjoin image.tif

see http://www.imagemagick.org/script/command-line-options.php#adjoin
http://www.imagemagick.org/Usage/formats/#ps
http://www.imagemagick.org/Usage/files/#delegate_postscript

You need to have ghostscript installed also and I think the proper
ghostscript device to handle multipage pdfs (though I am not an
expert on the latter so cannot say which one). But you can edit the
delegates.xml file to set the device.
Post by Peng Yu
I want to convert a pdf into multiple tifs (each pdf page per tif)
with given resolution (say 400 dpi). I've tried a few command line
arguments. But I can't get the correct ones. Could you let me know how
to do this task with convert? Thanks!
Wolfgang Hugemann
2011-04-17 10:52:32 UTC
Permalink
Post by Fred Weinhaus
convert -density 400 -units pixelsperinch image.pdf +adjoin image.tif
I perform this conversion on a regular basis, thus I can report that you
can skip the -units pixelsperinch option, because it's the default. I
though didn't know about the +adjoin option, which forces output into
separate files; thanks for that hint, Fred.

I think that

convert -density 400 image.pdf +adjoin image_%02d.tif

is the better option (this is how I have done it so far), as it will
insert leading zeros to the numbering of the files and therefore
guarantee the correct file name ordering in subsequent steps.

Greetings from Germany
Wolfgang Hugemann
Fred Weinhaus
2011-04-17 17:51:10 UTC
Permalink
Wolfgang is absolutely correct. I just did not want to do into that
complication what appeared to be a relatively novice user for fear of
getting too complex and explaining the %02d.


Fred
Post by Wolfgang Hugemann
convert -density 400 image.pdf +adjoin image_%02d.tif
is the better option (this is how I have done it so far), as it will
insert leading zeros to the numbering of the files and therefore
guarantee the correct file name ordering in subsequent steps.
Loading...