I was a little curious, so I took a (very brief) look at this.

On Nov 14, 2008, at 2:54 PM, Richard Chonak wrote:

> Elie Roux wrote:
>> Richard Chonak a écrit :
>>> A tip to new users:
>>>
>>> The PDF files produced by TeX utilities are often rather bloated.   
>>> I've
>>>  noticed that I can reduce their size by converting them to  
>>> Postscript
>>> and back to PDF with these commands:
>>>
>>>      pdftops  main.pdf
>>>      ps2pdf   main.ps  main-smaller.pdf

Have you tried just doing the TeX conversion with:
lamed main.tex
dvips main.dvi
ps2pdf main.ps main.pdf

(or, in fewer steps if you don't need the .ps file for anything)
lamed main.tex
dvipdf main.dvi main.pdf

These produced an 18K file with a simple Tantum Ergo that I just  
looked at... the bloat seems to come from running dvipdfm, which on  
the same chant gives a >800K file.

>> That's interesting... I don't have internet right now (only 30  
>> minutes a
>> day) so I can't really understand this magical trick. Do you have an
>> explanation? What does it remove? What does TeX add that is so
>> unnecessary? If you have time to understand, I would be interested in
>> your results...
>>
>> Thank you,
>
> I don't know what optimizations these utilities perform.
> --RC

With the same chant file as above, I converted with
dvipdfm -vv main.dvi     (-v flags for verbose output)

The end of the terminal log included this:
(PFB:/Users/tbl/.texlive2008/texmf-var/fonts/type1/lcdftools/ 
GaramondPremierePro/GaramondPremrPro.pfb
   Embedding 42 of 2373 glyphs
   (subsetting eliminated 430084 bytes)
   Embedded size: 209075 bytes
)(PFB:/usr/local/texlive/2008/../texmf-local/fonts/type1/public/ 
gregoriotex/greciliae/greciliae-0.pfb
   Embedding 16 of 257 glyphs
   (subsetting eliminated 68259 bytes)
   Embedded size: 60053 bytes
)(PFB:/usr/local/texlive/2008/../texmf-local/fonts/type1/public/ 
gregoriotex/greciliae/greciliae-1.pfb
   Embedding 1 of 257 glyphs
   (subsetting eliminated 81758 bytes)
   Embedded size: 89922 bytes
  (...and so forth for all the .pfb's in greciliae and gresym, even  
those not being used in the file...)
Compression eliminated approximately 23279 bytes
888178 bytes written

The embedded font sizes seem rather big... but I'm not sure just yet  
what it's adding.

--Tracy




_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à