コード例 #1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        TransparentImage t = new TransparentImage();
        zip.AddEntry(RESULT, t.CreatePdf());
        zip.AddFile(RESOURCE1, "");
        zip.AddFile(RESOURCE2, "");
        zip.AddFile(RESOURCE3, "");
        zip.AddFile(RESOURCE4, "");
        zip.Save(stream);             
      }
    }
コード例 #2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                TransparentImage t = new TransparentImage();
                zip.AddEntry(RESULT, t.CreatePdf());
                zip.AddFile(RESOURCE1, "");
                zip.AddFile(RESOURCE2, "");
                zip.AddFile(RESOURCE3, "");
                zip.AddFile(RESOURCE4, "");
                zip.Save(stream);
            }
        }