예제 #1
0
// --------------------------------------------------------------------------- 
    public override void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        ViewerPreferencesExample example = new ViewerPreferencesExample();
        zip.AddEntry(RESULT1, example.CreatePdf(PdfWriter.PageModeFullScreen));
        zip.AddEntry(RESULT2, example.CreatePdf(PdfWriter.PageModeUseThumbs));
        zip.AddEntry(RESULT3, example.CreatePdf(
          PdfWriter.PageLayoutTwoColumnRight | PdfWriter.PageModeUseThumbs
        ));
        zip.AddEntry(RESULT4, example.CreatePdf(
          PdfWriter.PageModeFullScreen | PdfWriter.NonFullScreenPageModeUseOutlines
        ));
        zip.AddEntry(RESULT5, example.CreatePdf(
          PdfWriter.FitWindow | PdfWriter.HideToolbar
        ));
        zip.AddEntry(RESULT6, example.CreatePdf(PdfWriter.HideWindowUI));      
        zip.Save(stream);             
      }
    } 
// ---------------------------------------------------------------------------
        public override void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                ViewerPreferencesExample example = new ViewerPreferencesExample();
                zip.AddEntry(RESULT1, example.CreatePdf(PdfWriter.PageModeFullScreen));
                zip.AddEntry(RESULT2, example.CreatePdf(PdfWriter.PageModeUseThumbs));
                zip.AddEntry(RESULT3, example.CreatePdf(
                                 PdfWriter.PageLayoutTwoColumnRight | PdfWriter.PageModeUseThumbs
                                 ));
                zip.AddEntry(RESULT4, example.CreatePdf(
                                 PdfWriter.PageModeFullScreen | PdfWriter.NonFullScreenPageModeUseOutlines
                                 ));
                zip.AddEntry(RESULT5, example.CreatePdf(
                                 PdfWriter.FitWindow | PdfWriter.HideToolbar
                                 ));
                zip.AddEntry(RESULT6, example.CreatePdf(PdfWriter.HideWindowUI));
                zip.Save(stream);
            }
        }