// --------------------------------------------------------------------------- public void Write(Stream stream) { using (ZipFile zip = new ZipFile()) { HelloWorld h = new HelloWorld(); byte[] pdf = Utility.PdfBytes(h); zip.AddEntry(Utility.ResultFileName(h.ToString() + ".pdf"), pdf); AppendMode a = new AppendMode(); zip.AddEntry(RESULT, a.ManipulatePdf(pdf)); zip.Save(stream); } }