gs pdf tiff for multiple pages

Klaus-Peter Schrage kpschrage at gmx.de
Wed Dec 23 10:50:02 PST 2009


Am 16.12.2009 22:03, schrieb Vu Pham:
> I use the following command to convert a pdf file to a tiff file:
>
> #gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4
> -sOutputFile=/home/vu/test/b.tif /home/vu/test/b.pdf
>
> This command converts only the first page of the pdf.
>
> I can use %d in the output file to have multiple output files, each for
> one page of the Pdf:
> #gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4
> -sOutputFile=/home/vu/test/b%4.tif /home/vu/test/b.pdf
>
> but I need the output to be one file with multiple pages.
>
> Can I do it with gs ?
>
> Is there any command line tool out there other than gs to do this job ?

I know it's only a frontend to ghostscript, but Gsview (with 
File|Convert|Device:tiffg4) gives you a multipage tiff file in just one 
step. Gsview is pretty handy for lots of PDF/EPS/PS related tasks if you 
don't want to look up the gs syntax every time.
Klaus



More information about the Linux-users mailing list