On Mon, May 23, 2005 at 04:04:17AM +0200, Rolf Leggewie wrote: > Derek B. Noonburg wrote: > > Hm, maybe I should make this an FAQ on the xpdf web page... > > I think this would be a good idea. Maybe mention it somewhere in README > as well so people know this design decision has been made for a reason.
You can use zxpdf (at least on Debian) to see compressed xpdf files. > Derek B. Noonburg wrote: > > On a related note, compressing PDF files like this isn't really the > > best approach. Properly generated PDF files should be internall > > compressed, and won't see much benefit from running gzip (or bzip2 or > > whatever). Depend on the value of "much": Experiment on my system show a compression ratio from 10% to 80 with an average around 30%. Try: for i in `locate .pdf| grep '\.pdf$' `; do A=`cat $i | wc -c`; B=`gzip -9 -c $i | wc -c`; echo $i $((100*(A-B)/A)); done and for i in `locate .pdf.gz| grep '\.pdf.gz$' `; do A=`wc -c <$i`; B=`gunzip -c $i | wc -c`; echo $i $((100*(B-A)/B)); done (Debian maintainers apparently check the compression ration before compressing PDF files, since the second give higher compression ratio). > Bill Allombert wrote: > > Debian policy state that documentation should be compressed compressed > > with `gzip -9', > > Wouldn't it be a good idea to change Debian policy in this respect? > What do you think? I think Debian policy is correct. Documentation is very important but should not waste space needlessly. Debian provide zxpdf to deal with those files. Cheers, Bill. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]