// ---------------------------------------------------------------------------    
 public void Write(Stream stream)
 {
     NestedTables n = new NestedTables();
     byte[] pdf = Utility.PdfBytes(n);
     using (ZipFile zip = new ZipFile())
     {
         FindDirectors f = new FindDirectors();
         zip.AddEntry(RESULT, f.CreatePdf(pdf));
         zip.AddEntry(RESOURCE, f.jsContents);
         zip.AddEntry(Utility.ResultFileName(n.ToString() + ".pdf"), pdf);
         zip.Save(stream);
     }
 }
Example #2
0
        // ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            NestedTables n = new NestedTables();

            byte[] pdf = Utility.PdfBytes(n);
            using (ZipFile zip = new ZipFile())
            {
                FindDirectors f = new FindDirectors();
                zip.AddEntry(RESULT, f.CreatePdf(pdf));
                zip.AddEntry(RESOURCE, f.jsContents);
                zip.AddEntry(Utility.ResultFileName(n.ToString() + ".pdf"), pdf);
                zip.Save(stream);
            }
        }