gs pdf tiff for multiple pages
Vu Pham
vu at sivell.com
Wed Dec 16 13:23:58 PST 2009
On 12/16/2009 03:18 PM, C M Reinehr wrote:
> On Wed 16 December 2009 03:03:51 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
>>
>> 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 ?
>>
>> Thanks,
>> Vu
>
> Vu,
>
> I don't know about gs but tiffcp looks like it will do the job for you:
>
> "tiffcp combines one or more files created according to the Tag Image File
> Format, Revision 6.0 into a single TIFF file."
>
> On Debian systems tiffcp is found in the libtiff-tools package.
>
Thanks, CM. That works !!!
Now I use two steps: gs to convert pdf to multiple tiff files, then
tiffcp to combine them.
I wish gs has some way to make it directly into one big file.
Thanks again,
Vu.
More information about the Linux-users
mailing list