gs pdf tiff for multiple pages [ AM I CRAZY ?]
Vu Pham
vu at sivell.com
Wed Dec 16 13:15:56 PST 2009
On 12/16/2009 03:12 PM, Vu Pham wrote:
> 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 ?
>
I am crazy now. In fact, each tif file is just one page, but if there
are in the same folder, then the Gnome Eye will treat them as one page
with multiple files inside. i.e., if I have b1,b2,b3 and b4 then open b1
will show that b1 has 4 pages. If I delete b2, b3 and b4, so it opens b1
as one page !!!!!!!
Sorry, so I go back to my original question
More information about the Linux-users
mailing list