<br><br><div class="gmail_quote">2010/12/17 Franz Waldmüller <span dir="ltr"><<a href="mailto:waldbauernbub@gmx.at">waldbauernbub@gmx.at</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Am 2010-12-14 16:35, schrieb Smoot Carl-Mitchell:<br>
<div class="im">> On Tue, 2010-12-14 at 20:55 +0530, Tapas Mishra wrote:<br>
>> I am having 982 images which are in gif format.This is basically a<br>
>> document which is in form of gifs.<br>
>> I want to create one pdf all these 982 are numbered sequentially.So in<br>
>> the pdf I want them from gif1 to gif982 all in one pdf.<br>
>> I read some where imagemagick can do this.Or inserting image in<br>
>> openoffice and then saving as pdf as an option.<br>
>> But to insert 982 gifs it would be difficult.So is there an easy way<br>
>> to do so?<br>
><br>
> ImageMagick can do it. Something like:<br>
><br>
> convert gif* out.pdf<br>
><br>
> should do the trick. You may have to fiddle with the input file naming<br>
> to get the sort order correct.<br>
><br>
</div>your gifs are numbered sequentially - perfect!<br>
install imagemagick and pdftk<br>
sudo apt-get install imagemagick pdftk<br>
<br>
copy the following into a text editor<br>
<br>
#!/bin/bash<br>
for file in *gif<br>
do<br>
convert $file $file.pdf<br>
done<br>
pdftk *.pdf cat output finalpdf.pdf # merge all pdf files into one<br>
single pdf file.<br>
<br>
#############<br>
<br>
save the file as "convert.sh" into the folder where the gives which<br>
should be converted are stored. Make sure that in this folder contains<br>
only your gif files and the script which you just stored within.<br>
<br>
open up a terminal and paste the following commands (adjust them to your<br>
needs.<br>
<br>
cd /home/tapas/folder-with-gifs # change your working directory<br>
chmod u+x convert.sh # make the script executable<br>
./convert.sh # run the script<br>
<br>
I hope this helps<br>
<font color="#888888">Franz<br>
</font><div><div></div><div class="h5"></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">Thanks I was looking for this one only.</div>
</div></blockquote></div>