Пример #1
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                NestedTables  n   = new NestedTables();
                byte[]        pdf = Utility.PdfBytes(n);
                Advertisement a   = new Advertisement();
                zip.AddEntry(RESULT, a.ManipulatePdf(pdf));
                zip.AddEntry(Utility.ResultFileName(n.ToString() + ".pdf"), pdf);
                zip.AddFile(RESOURCE, "");
                zip.Save(stream);
            }
        }
Пример #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);
            }
        }