I noticed that when compiling any document in TeX, the resulting PDF can be reduced in size by quite much. For example, take
\documentclass{article}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum
dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}
and compile it with
$ lualatex test.tex
$ du -h test.pdf
16K test.pdf
GhostScript can then decrease the file size by half, e.g.,
$ gs -q -dBATCH -dNOPAUSE -dSAFER -sDEVICE=pdfwrite -dPDFSETTINGS=/default \
-sOutputFile=out.pdf test.pdf
$ du -h out.pdf
8.0K out.pdf
I'm experiencing the same behavior for all documents I tried, no matter how large or complex they are.
Are there (La)TeX commands that optimize the PDF in a similar way straight from {lua,pdf}(la)tex?
microtype? Etc. Without knowing anything about your setup it is hard to say. But pdfTeX, at least, is not generally configured to optimise the size of the resulting document. – cfr Mar 04 '15 at 01:41\usepackage{fontspec}(default: Latin Modern fonts). OpenType fonts are not encrypted as Type 1 fonts and can therefore be better compressed. – Heiko Oberdiek May 20 '15 at 07:41