[iText-questions] How to control the spacing of 2 pages?

2002-07-21 Thread Foo Siang Han
Hi,   I know if you want to control the spacing of 2 tables is to use setOffset() method. However, I have a problem when the first table flow to a new page with only 1 or 2 rows on the next page and the spacing with the second tables is too large. Therefore I have to use table2.setOffset(-50) to na

[iText-questions] Why iText runs faster on second time?

2002-07-01 Thread Foo Siang Han
Hi, I have writen many report generated by iText. I have one question to satisfy my curiousity: How come the time taken to print the same report is faster on second time compared to the first time? Any general explanation is welcomed Thank you very much Michael MSN Photos is the easiest way

[iText-questions] How to make the inserted table has border?

2002-06-11 Thread Foo Siang Han
Hi,     Assume I have 2 table, tableA and tableB Both table I setBorder(6);     Within tableA I create some cells with NO BORDER, then I addCell. Then I use the method tableB.insertTable(tableA) to insert tableA into one of the cell  in tableB. However, I see no border from tableA in the tableB. Wh

Re: [iText-questions] How to print the total page number on Footer?

2002-06-06 Thread Foo Siang Han
nce if I setPageEvent(myPageEvent) BEFORE and AFTER document.open()?    Thank you. Michael >From: Bruno <[EMAIL PROTECTED]> >To: Foo Siang Han <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [iText-questions] How to print the total page number on Footer? >D

[iText-questions] How to print the total page number on Footer?

2002-06-06 Thread Foo Siang Han
For example if I have total 6 pages in my PDF, how do I print something like "Page 1 of 6", "Page 2 of 6" and so on at the footer of my document? Is there any variable or method that we can use in iText? As far as I am concerned, if I use the LASTPAGE variable in PdfAction class, it would only ret