Exemple #1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        PagedImages p = new PagedImages();
        zip.AddEntry(RESULT, p.CreatePdf());
        zip.AddFile(RESOURCE1, "");
        zip.AddFile(RESOURCE2, "");
        zip.AddFile(RESOURCE3, "");
        zip.Save(stream);
      }
    }    
Exemple #2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                PagedImages p = new PagedImages();
                zip.AddEntry(RESULT, p.CreatePdf());
                zip.AddFile(RESOURCE1, "");
                zip.AddFile(RESOURCE2, "");
                zip.AddFile(RESOURCE3, "");
                zip.Save(stream);
            }
        }