Hi,
I am trying to create a pdf file using iText which has a half page of text,
lines, etc, then followed by thousands of rows of data in a table. After
that, it has some other lines of text, lines, etc.
This is my page layout:
This is text | Goal of the page | more text here
etc | etc | xxxxxxx
----------------------------------------------------------------------
more stuff here
----------------------------------------------------------------------
now is a table of thousands of rows (begin from half of the first page)
.......
---------------------------------------------------------------------
(after many pages)
some text here | xxxxxxxx | xxxxxxx
----------------------------------------------------------------------
some text | more text | xxxxx | xxxxxx
etc
I am trying to use PdfContentByte class -- showTextAligned(), moveTo(),
LineTo(), and Stroke() -- to generate the first half of the page contents.
Then i am trying to use PdfPTable class to hold those thousands of rows of
data. However, the generated pdf file shows the table is located at the top
of the page, and it is overlapped with the first half page of contents. I am
looking through the iText APIs, but I could not find a function of PdfPTable
class which can make the table start at a specific location (x, y). I also
tried writeSelectedRows() method which can give a position, but this method
only writes one page of rows.
Is there a method for PdfPTable to define the location? If not, what can i
do to generate a pdf file as i described? I am also thinking of making all
the contents into different tables, but since some cells have more than one
lines of text, the arrangement is not good.
Thanks for any help or suggests.
Ruitao
_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions