Beispiel #1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        MovieTemplates m = new MovieTemplates();
        byte[] mPdf = Utility.PdfBytes(m);
        zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), mPdf);
        InspectPageContent i = new InspectPageContent();
        zip.AddEntry(RESULT, i.InspectPdf(mPdf));
        zip.Save(stream);             
      }
    }    
Beispiel #2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                MovieTemplates m    = new MovieTemplates();
                byte[]         mPdf = Utility.PdfBytes(m);
                zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), mPdf);
                InspectPageContent i = new InspectPageContent();
                zip.AddEntry(RESULT, i.InspectPdf(mPdf));
                zip.Save(stream);
            }
        }