gs pdf tiff for multiple pages
Vu Pham
vu at sivell.com
Wed Dec 16 13:12:10 PST 2009
On 12/16/2009 03:03 PM, Vu Pham wrote:
> 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
>
I just found out that the 2nd command will create multiple tif files and
although they have different sizes, each of them has the same number of
pages of the pdf, and its content is the same as the whole pdf. ???
I thought it would output each tif file as one page of the original pdf.
So now I can have one tif file with mutiple pages, but why gs won't
outout it without the %d in the command line ? Bugs or am I missing some
thing ?
Thanks,
Vu
More information about the Linux-users
mailing list