示例#1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        ReplaceURL form = new ReplaceURL(); 
    	  byte[] pdf = form.CreatePdf();
  	    zip.AddEntry(RESULT1, pdf);
  	    zip.AddEntry(RESULT2, form.ManipulatePdf(pdf));         
        zip.Save(stream);             
      }
    }     
示例#2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                ReplaceURL form = new ReplaceURL();
                byte[]     pdf  = form.CreatePdf();
                zip.AddEntry(RESULT1, pdf);
                zip.AddEntry(RESULT2, form.ManipulatePdf(pdf));
                zip.Save(stream);
            }
        }