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