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