Hi

Let's consider this two options:

Option A:

 ...
PdfContentByte content = writer.getDirectContent();
PdfPTable table = createTableWith100Rows(...);
table.writeSelectedRows(0, -1, 20f, 10f, content);
 ...

Option B:

 ...
PdfContentByte content = writer.getDirectContent();
PdfPTable table = createTableWith100Rows(...);
for(int i=0;i<100;i++){
   table.writeSelectedRows(i, i+1, 20f, 10f, content);
   ...
}
...

I'm currently using option B. A may be faster, I imagine, but I don't 
know how much. Changing to A makes me change much code because it's 
better for me to treat and paint rows one by one. But the problem is 
that I would like to genereate my documents faster. Is option A better 
enough or would be similar?

thanks




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to