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