title: Rebuild failed using PDF compression
body: <p>Im trying to use the methods described bt <code>kuujinbo</code> here.
  <a href="https://stackoverflow.com/questions/8740244/pdf-compression/8751517">PDF Compression with iTextSharp</a></p>
  
  <p>This is my code, and it results in this error:
  "Rebuild failed: trailer not found.; Original message: PDF startxref not found."</p>
  
  <pre><code>            PdfReader reader = new PdfReader(output.ToArray());
              ReduceResolution(reader, 9);
  
              // Save altered PDF. then you can pass the btye array to a database, etc
              using (MemoryStream ms = new MemoryStream())
              {
                  using (PdfStamper stamper = new PdfStamper(reader, ms))
                  {
                  }
  
                  document.Close();
                  Response.ContentType = "application/pdf";
                  Response.AddHeader("Content-Disposition", string.Format("attachment;filename=Produktark-{0}.pdf", myItem.Key));
                  Response.BinaryWrite(output.ToArray());
              }
  </code></pre>
  
  <p>What might I be missing?</p>