// ---------------------------------------------------------------------------      
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MovieTemplates m = new MovieTemplates();
         byte[] pdf = Utility.PdfBytes(m);
         BookmarkedTimeTable b = new BookmarkedTimeTable();
         byte[] bttBytes = b.ManipulatePdf(pdf);
         MovieHistory mh = new MovieHistory();
         byte[] mhBytes = Utility.PdfBytes(mh);
         List<byte[]> src = new List<byte[]>() { bttBytes, mhBytes };
         ConcatenateBookmarks cb = new ConcatenateBookmarks();
         zip.AddEntry(RESULT, cb.ManipulatePdf(src));
         zip.AddEntry(Utility.ResultFileName(b.ToString() + ".pdf"), bttBytes);
         zip.AddEntry(Utility.ResultFileName(mh.ToString() + ".pdf"), mhBytes);
         zip.Save(stream);
     }
 }
Exemplo n.º 2
0
 // ---------------------------------------------------------------------------
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MovieTemplates      m        = new MovieTemplates();
         byte[]              pdf      = Utility.PdfBytes(m);
         BookmarkedTimeTable b        = new BookmarkedTimeTable();
         byte[]              bttBytes = b.ManipulatePdf(pdf);
         MovieHistory        mh       = new MovieHistory();
         byte[]              mhBytes  = Utility.PdfBytes(mh);
         List <byte[]>       src      = new List <byte[]>()
         {
             bttBytes, mhBytes
         };
         ConcatenateBookmarks cb = new ConcatenateBookmarks();
         zip.AddEntry(RESULT, cb.ManipulatePdf(src));
         zip.AddEntry(Utility.ResultFileName(b.ToString() + ".pdf"), bttBytes);
         zip.AddEntry(Utility.ResultFileName(mh.ToString() + ".pdf"), mhBytes);
         zip.Save(stream);
     }
 }