Assume I have a screenshot in png format and make a copy of it in eps format by using ImageMagick.
I create two input file, namely ForPNG.tex
and ForEPS.tex
. ForPNG.tex
imports the png image and is compiled by pdflatex. ForEPS.tex
imports the eps image and is compiled by latex-dvips-ps2pdf.
The question is, which one produces the smaller pdf file in size?
In my experience, ForEPS.pdf
will be smaller than ForPNG.pdf
. But I am not sure whether it is a summary.
Best Answer
Despite my comment to the original question, I have now come to the conclusion that the
latex-dvips-ps2pdf
route produces smaller PDF files thanpdflatex
alone.However, in my answer to How to make the PDFS produced by pdflatex smaller I suggested to use
gs
to compress the resulting PDF, which gets you a significant reduction in size. Asps2pdf
is as well built ongs
internally, one can also directly pass compression options tops2pdf
, so in the end it should not matter.I made some quick experiments with a beamer presentation. In these experiments the
pdflatex-gs
route lead to only 1 percent smaller PDFs thanlatex-dvips-ps2pdf
.So the bottom line is: With respect to the goal of small PDF files, it doesn't matter.
You can just choose your frontend depending on other constraints (e.g.,
latex-dvips-ps2pdf
if you usepstricks
orpdflatex-gs
to support transparencies inpgf/tikz
images).