title: How to optimize PDF file size?
body: <p>I have an input PDF file (usually, but not always generated by pdfTeX), which I want to convert to an output PDF, which is visually equivalent (no matter the resolution), it has the same metadata (Unicode text info, hyperlinks, outlines etc.), but the file size is as small as possible.</p>
  
  <p>I know about the following methods:</p>
  
  <ul>
  <li><code>java -cp Multivalent.jar tool.pdf.Compress input.pdf</code> (from <a href="http://multivalent.sourceforge.net/" rel="noreferrer">http://multivalent.sourceforge.net/</a>). This recompresses all streams, removes unused objects, unifies equivalent objects, compresses whitespace, removes default values, compresses the cross-reference table.</li>
  <li>Recompressing suitable images with jbig2 and PNGOUT.</li>
  <li>Re-encoding Type1 fonts as CFF fonts.</li>
  <li>Unifying equivalent images.</li>
  <li>Unifying subsets of the same font to a bigger subset.</li>
  <li>Remove fillable forms.</li>
  <li>When distilling or otherwise converting (e.g. <code>gs -sDEVICE=pdfwrite</code>), make sure it doesn't degrade image quality, and doesn't increase (!) the image sizes.</li>
  </ul>
  
  <p>I know about the following techniques, but they don't apply in my case, since I already have a PDF:</p>
  
  <ul>
  <li>Use smaller and/or less fonts.</li>
  <li>Use vector images instead bitmap images.</li>
  </ul>
  
  <p>Do you have any other ideas how to optimize PDF?</p>