For you minimal example it is the font format which makes the difference. This can be seen by comparing the PDFs in an editor which supports binary (like vim).
Also pdffonts
is helpful:
xelatex: (1874 bytes compressed, 2444 bytes uncompressed)
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
ZOJBFE+CMR10 Type 1C yes yes no 6 0
pdflatex: (10785 bytes compressed, 11677 bytes uncompressed)
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
SLFVOY+CMR10 Type 1 yes yes no 2 0
The pdffonts
manual states that "Type 1C" is the Compact Font Format (CFF) which is as the name says more compact.
With larger projects, I was still able to reduce the size by a factor of 2 with no noticeable changes in the output.
It depends on what font you are using and what you mean with "larger". I recently figured out that changing to T1 increase a 9-page manual (ydoc
package) from 217K to 323K. Changing to the libertine
font makes 482K out of it. See
How to create small PDF files for the Internet for tips on how to reduce the file size.
pdflatex
andxelatex
are you using? They print its version onto the terminal and into the log file. I don't know which version come with MacTeX 2010.pdflatex
: 3.1415926-1.40.11;xelatex
: 3.1415926-2.2-0.9997.4.