示例#1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        XfaMovie x = new XfaMovie();
        zip.AddEntry(RESULTTXT, x.ReadFieldnames(new PdfReader(RESOURCE)));
        XfaMovies xfa = new XfaMovies();
        string xml = xfa.CreateXML();
        zip.AddEntry(XMLDATA, xml);
        zip.AddEntry(RESULT, xfa.ManipulatePdf(RESOURCE, xml));
        zip.Save(stream);             
      }
    }
示例#2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                XfaMovie x = new XfaMovie();
                zip.AddEntry(RESULTTXT, x.ReadFieldnames(new PdfReader(RESOURCE)));
                XfaMovies xfa = new XfaMovies();
                string    xml = xfa.CreateXML();
                zip.AddEntry(XMLDATA, xml);
                zip.AddEntry(RESULT, xfa.ManipulatePdf(RESOURCE, xml));
                zip.Save(stream);
            }
        }
示例#3
0
// ---------------------------------------------------------------------------
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        XfaMovie xfa = new XfaMovie();
        zip.AddEntry(RESULTTXT1, xfa.ReadFieldnames(new PdfReader(RESOURCE)));
        zip.AddEntry(RESULTXML, xfa.ReadXfa(new PdfReader(RESOURCE)));
        byte[] pdf = xfa.FillData1(RESOURCE);
        zip.AddEntry(RESULT1, pdf);
        zip.AddEntry(RESULTXMLFILLED, xfa.ReadXfa(new PdfReader(pdf)));
        pdf = xfa.FillData2(RESOURCE, RESOURCEXFA);
        zip.AddEntry(RESULT2, pdf);
        zip.AddEntry(RESULTDATA, xfa.ReadData(pdf));
        pdf = xfa.FillData3(RESOURCE);
        zip.AddEntry(RESULT3, pdf);
        zip.AddEntry(RESULTTXT2, xfa.ReadFieldnames(new PdfReader(pdf)));
        
        zip.AddFile(RESOURCE, "");
        zip.AddFile(RESOURCEXFA, "");
        zip.Save(stream);             
      }    
    }
示例#4
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                XfaMovie xfa = new XfaMovie();
                zip.AddEntry(RESULTTXT1, xfa.ReadFieldnames(new PdfReader(RESOURCE)));
                zip.AddEntry(RESULTXML, xfa.ReadXfa(new PdfReader(RESOURCE)));
                byte[] pdf = xfa.FillData1(RESOURCE);
                zip.AddEntry(RESULT1, pdf);
                zip.AddEntry(RESULTXMLFILLED, xfa.ReadXfa(new PdfReader(pdf)));
                pdf = xfa.FillData2(RESOURCE, RESOURCEXFA);
                zip.AddEntry(RESULT2, pdf);
                zip.AddEntry(RESULTDATA, xfa.ReadData(pdf));
                pdf = xfa.FillData3(RESOURCE);
                zip.AddEntry(RESULT3, pdf);
                zip.AddEntry(RESULTTXT2, xfa.ReadFieldnames(new PdfReader(pdf)));

                zip.AddFile(RESOURCE, "");
                zip.AddFile(RESOURCEXFA, "");
                zip.Save(stream);
            }
        }