예제 #1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        Bookmarks2NamedDestinations example = new Bookmarks2NamedDestinations();
        byte[] pdf = example.CreatePdf();
        zip.AddEntry(RESULT1, pdf);
        pdf = example.ManipulatePdf(pdf);
        zip.AddEntry(RESULT2, pdf);
        zip.AddEntry(RESULT3, new LinkActions().CreateXml(pdf)); 
        zip.Save(stream);             
      }
    }
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                Bookmarks2NamedDestinations example = new Bookmarks2NamedDestinations();
                byte[] pdf = example.CreatePdf();
                zip.AddEntry(RESULT1, pdf);
                pdf = example.ManipulatePdf(pdf);
                zip.AddEntry(RESULT2, pdf);
                zip.AddEntry(RESULT3, new LinkActions().CreateXml(pdf));
                zip.Save(stream);
            }
        }