Ejemplo n.º 1
0
// ---------------------------------------------------------------------------            
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        MovieTemplates m = new MovieTemplates();
        byte[] pdf = Utility.PdfBytes(m);
        BookmarkedTimeTable b = new BookmarkedTimeTable();
        zip.AddEntry(RESULT, b.ManipulatePdf(pdf));
        zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
        zip.Save(stream);             
      }
    }
Ejemplo 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();
                zip.AddEntry(RESULT, b.ManipulatePdf(pdf));
                zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
                zip.Save(stream);
            }
        }
Ejemplo n.º 3
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);             
      }
    }
Ejemplo n.º 4
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);
            }
        }