示例#1
0
// --------------------------------------------------------------------------- 
    public override void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        PageLayoutExample example = new PageLayoutExample();
        zip.AddEntry(RESULT1, example.CreatePdf(PdfWriter.PageLayoutSinglePage));
        zip.AddEntry(RESULT2, example.CreatePdf(PdfWriter.PageLayoutOneColumn));
        zip.AddEntry(RESULT3, example.CreatePdf(PdfWriter.PageLayoutTwoColumnLeft));
        zip.AddEntry(RESULT4, example.CreatePdf(PdfWriter.PageLayoutTwoColumnRight));
        zip.AddEntry(RESULT5, example.CreatePdf(PdfWriter.PageLayoutTwoPageLeft));
        zip.AddEntry(RESULT6, example.CreatePdf(PdfWriter.PageLayoutTwoPageRight));      
        zip.Save(stream);             
      }
    }
示例#2
0
// ---------------------------------------------------------------------------
        public override void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                PageLayoutExample example = new PageLayoutExample();
                zip.AddEntry(RESULT1, example.CreatePdf(PdfWriter.PageLayoutSinglePage));
                zip.AddEntry(RESULT2, example.CreatePdf(PdfWriter.PageLayoutOneColumn));
                zip.AddEntry(RESULT3, example.CreatePdf(PdfWriter.PageLayoutTwoColumnLeft));
                zip.AddEntry(RESULT4, example.CreatePdf(PdfWriter.PageLayoutTwoColumnRight));
                zip.AddEntry(RESULT5, example.CreatePdf(PdfWriter.PageLayoutTwoPageLeft));
                zip.AddEntry(RESULT6, example.CreatePdf(PdfWriter.PageLayoutTwoPageRight));
                zip.Save(stream);
            }
        }