title: Save Pdf in Zip with MemoryStream
body: <p>I try the save multiples files pdf in zip but I can't, can somebody can help me?</p>
  
  <pre><code>using (MemoryStream memorystream = new MemoryStream())
  {
      string zip = @"C:\Temp\ZipFile.zip";
      using (var archive = new ZipArchive(memorystream, ZipArchiveMode.Create, true))
      {
  
          for (int i = 0; i &lt; 1; i++)
          {
              ZipArchiveEntry file = archive.CreateEntry(string.Format("Test{0}.pdf", i), CompressionLevel.Optimal);
              using (Stream stream = file.Open())
              {
                  Document document = new Document(PageSize.A4, 25, 25, 30, 30);
                  PdfWriter writer = PdfWriter.GetInstance(document, memorystream);
                  document.Open();
                  //
                  PdfPTable table = new PdfPTable(7);
                  Font fdefault = FontFactory.GetFont("Arial", 9, Font.NORMAL, BaseColor.DARK_GRAY);
                  table.AddCell(new Paragraph("Container", fdefault));
                  table.AddCell(new Paragraph("Code", fdefault));
                  table.AddCell(new Paragraph("ITEM", fdefault));
                  table.AddCell(new Paragraph("Reference", fdefault));
                  table.AddCell(new Paragraph("Description", fdefault));
                  table.AddCell(new Paragraph("Size", fdefault));
                  table.AddCell(new Paragraph("Quantity", fdefault));
                  document.Add(table);
                  document.Close();
                  writer.Close();
                  memorystream.Close();
             }
          }
      }
      using (var fileStream = new FileStream(zip, FileMode.Create))
      {
          memorystream.Seek(0, SeekOrigin.Begin);
          memorystream.CopyTo(fileStream);
      }    
  }
  </code></pre>
  
  <p>I do it that with ExcelPackage and work but this don't work, I don't know the problem. I would appreciate if anyone can help me with this problem.</p>