예제 #1
0
// ---------------------------------------------------------------------------
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        TextFieldFonts example = new TextFieldFonts();
        byte[] pdf1 = example.CreatePdf(false, false);
        byte[] pdf2 = example.CreatePdf(true, false);
        byte[] pdf3 = example.CreatePdf(false, true);
        zip.AddEntry(RESULT1, pdf1);
        zip.AddEntry(RESULT2, pdf2);
        zip.AddEntry(RESULT3, pdf3); 
        zip.AddEntry(RESULT4, example.ManipulatePdf(pdf1));
        zip.AddEntry(RESULT5, example.ManipulatePdf(pdf2));
        zip.AddEntry(RESULT6, example.ManipulatePdf(pdf3));      
        zip.AddEntry(RESULT7, example.ManipulatePdfFont1(pdf3));      
        zip.AddEntry(RESULT8, example.ManipulatePdfFont2(pdf3));      
        zip.Save(stream);             
      }
    }
예제 #2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                TextFieldFonts example = new TextFieldFonts();
                byte[]         pdf1    = example.CreatePdf(false, false);
                byte[]         pdf2    = example.CreatePdf(true, false);
                byte[]         pdf3    = example.CreatePdf(false, true);
                zip.AddEntry(RESULT1, pdf1);
                zip.AddEntry(RESULT2, pdf2);
                zip.AddEntry(RESULT3, pdf3);
                zip.AddEntry(RESULT4, example.ManipulatePdf(pdf1));
                zip.AddEntry(RESULT5, example.ManipulatePdf(pdf2));
                zip.AddEntry(RESULT6, example.ManipulatePdf(pdf3));
                zip.AddEntry(RESULT7, example.ManipulatePdfFont1(pdf3));
                zip.AddEntry(RESULT8, example.ManipulatePdfFont2(pdf3));
                zip.Save(stream);
            }
        }