示例#1
0
// --------------------------------------------------------------------------- 
    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);             
      }
    }
示例#2
0
// ---------------------------------------------------------------------------
        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);
            }
        }