Exemplo n.º 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);             
      }
    }    
Exemplo n.º 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);
            }
        }