예제 #1
0
// --------------------------------------------------------------------------- 
    public override void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        MovieTemplates m = new MovieTemplates(); 
        byte[] pdf = Utility.PdfBytes(m);
        TimetableAnnotations3 t = new TimetableAnnotations3();
        zip.AddEntry(RESULT, t.ManipulatePdf(pdf));
        zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
        zip.Save(stream);             
      }
    }
예제 #2
0
// ---------------------------------------------------------------------------
        public override void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                MovieTemplates        m   = new MovieTemplates();
                byte[]                pdf = Utility.PdfBytes(m);
                TimetableAnnotations3 t   = new TimetableAnnotations3();
                zip.AddEntry(RESULT, t.ManipulatePdf(pdf));
                zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
                zip.Save(stream);
            }
        }