>From what you say it takes 15 seconds to read a document, set 40 fields and write the document back to disk. In pdf there's always lots of work to do to keep the structure. I'm sure that a dedicated C program would be faster.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 14:57 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Joining fields using acroform > > Hello, > > > I'm using I-text to merge data into a pdf file using the fdfReader. This > works fine, but the problem i'm facing is that it's very slow. > I have to add probably around 40 textfields each intto around 4 documents, > which tends to last for over a minute, which > can be a problem in an interactive system. My question is: Is it just a > fact that the merging process is that slow because of > the nature of the pdf, or might there be some error I'm making, or perhaps > would there be room for performance enhancements > in the itext library sometime in the future? I first tried to add the > fields one by one using the acroform fields but that was even slower. > > Regards, > Thomas Byholm > > ... > ... > > Document mergedPDF = new Document(); > ByteArrayOutputStream outStream = new ByteArrayOutputStream(); > PdfCopy writer = new PdfCopy(mergedPDF, outStream); > mergedPDF.open(); > PdfReader singlePDF = new PdfReader(templateName); > ByteArrayOutputStream pdfStream = new ByteArrayOutputStream(); > PdfStamper stamp = new PdfStamper(singlePDF, pdfStream); > AcroFields form = stamp.getAcroFields(); > FdfReader fdfreader = new FdfReader(fdf); > form.setFields(fdfreader); > > > ..... > .... > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions