CMYK: ps2pdf -dProcessColorModel=/DeviceCMYK
There are some presets to consider which adjust the right amount of compression for various mediums:
-dCompressFonts=boolean
Defines whether ps2pdf will compress embedded fonts in the output. The default value is true; the false setting is intended only for debugging.
-dPDFSETTINGS=configuration
Presets the "distiller parameters" to one of four predefined settings:
The best way to make a low file sized PDF is to print to postscript in Illustrator, then use this command to convert to PDF:
ps2pdf -dPDFSETTINGS=/screen -dProcessColorModel=/DeviceCMYK filename.ai.ps
Even more interesting, the quality (fonts, etc) of the Postscript file will depend on the Postscript driver you use! Use the Apple Color Laser driver.
HTMLDOC
/usr/local/bin/htmldoc --book --no-links --no-title --compression=8 --gray --header "..." --no-toc -v -f _final_output.pdf *.html/usr/local/bin/htmldoc --book --no-links --no-title --tocheader "..." --toclevels 1 --compression=8 --gray --header "..." --toctitle "ALL Journal" -v -f _final_output.pdf *.html