Exemplo n.º 1
0
// ---------------------------------------------------------------------------    
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        CreateOutlineTree example = new CreateOutlineTree();
        byte[] pdf = example.CreatePdf();
        zip.AddEntry(RESULT, pdf);
        zip.AddEntry(RESULTXML, example.CreateXml(pdf));
        zip.Save(stream);             
      }   
    }
Exemplo n.º 2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                CreateOutlineTree example = new CreateOutlineTree();
                byte[]            pdf     = example.CreatePdf();
                zip.AddEntry(RESULT, pdf);
                zip.AddEntry(RESULTXML, example.CreateXml(pdf));
                zip.Save(stream);
            }
        }