예제 #1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        zip.AddFile(ORIGINAL, "");
        FixBrokenForm example = new FixBrokenForm();
        byte[] pdf = example.ManipulatePdf(ORIGINAL);
        zip.AddEntry(FIXED, pdf);
        zip.AddEntry(RESULT1, example.FillData(new PdfReader(ORIGINAL)));
        zip.AddEntry(RESULT2, example.FillData(new PdfReader(pdf)));
        zip.Save(stream);             
      }
    }    
예제 #2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                zip.AddFile(ORIGINAL, "");
                FixBrokenForm example = new FixBrokenForm();
                byte[]        pdf     = example.ManipulatePdf(ORIGINAL);
                zip.AddEntry(FIXED, pdf);
                zip.AddEntry(RESULT1, example.FillData(new PdfReader(ORIGINAL)));
                zip.AddEntry(RESULT2, example.FillData(new PdfReader(pdf)));
                zip.Save(stream);
            }
        }