Exemplo n.º 1
0
 // ---------------------------------------------------------------------------
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MoviePosters1 m   = new MoviePosters1();
         byte[]        pdf = Utility.PdfBytes(m);
         MoviePosters2 m2  = new MoviePosters2();
         zip.AddEntry(RESULT, m2.ManipulatePdf(pdf));
         zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
         zip.Save(stream);
     }
 }
Exemplo n.º 2
0
 // --------------------------------------------------------------------------- 
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MoviePosters1 m = new MoviePosters1();
         byte[] pdf = Utility.PdfBytes(m);
         MoviePosters2 m2 = new MoviePosters2();
         zip.AddEntry(RESULT, m2.ManipulatePdf(pdf));
         zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
         zip.Save(stream);
     }
 }