// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        PageLabelExample labels = new PageLabelExample();
        byte[] pdf = labels.CreatePdf();
        zip.AddEntry(RESULT, pdf);           
        zip.AddEntry(LABELS, labels.ListPageLabels(pdf));           
        zip.AddEntry(RESULT2, labels.ManipulatePageLabel(pdf));           
        zip.Save(stream);             
      }
    }        
示例#2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                PageLabelExample labels = new PageLabelExample();
                byte[]           pdf    = labels.CreatePdf();
                zip.AddEntry(RESULT, pdf);
                zip.AddEntry(LABELS, labels.ListPageLabels(pdf));
                zip.AddEntry(RESULT2, labels.ManipulatePageLabel(pdf));
                zip.Save(stream);
            }
        }