In terms of speed iText compares well with other pdf Java packages that support fonts, tables and other layouts. The problem is that with fonts and tables there are a lot of text size calculations to be made before writing anything. The only way you can gain speed is to have a fixed width font such as courier and place the text with PdfContentByte but it won't make a good looking bill. A C based library will be 10X faster (and commercial) and www.pdflib.com comes to my mind. Note that what you get is basically the same in PdfContentByte, no fancy layouts.
Best Regards, Paulo Soares > -----Original Message----- > From: Martin Hellat [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 12:16 > To: [EMAIL PROTECTED] > Subject: [iText-questions] speed question > > Hi, > I'm using iText to generate bills in PDF in my application. > > My java function for iText inserts all relative information, like names, > addresses, etc in different fonts, what is this bill for, little table > with > products info and costs and signature in jpeg format. > It's about 400 lines simple code for making paragraphs and one table. > > Now the speed of generating one such bill is ~1 second... which is too > much, > since my application needs to generate thousands of bills and as fast as > possible...so rite now it takes about 15 minutes to generate 1000 bills... > > that is unacceptable. > > So, my question is, is there any way to make it faster or is iText that > slow > usually? i mean i really don't know what to fix in my java code, because > there are only commands to put some text on the bill, etc. So, should i > use > some other tool for PDF, e.g. that is optimized for native C and runs on > client machine or can i optimize iText somehow? > > Thanks, > Martin. > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
