I'm sorry, the link below is wrong! The correct link is: http://itextdocs.lowagie.com/examples/com/lowagie/examples/objects/tables/alternatives/JTable2Pdf.java
> Hi, > > I'm an iText beginner and I need to convert a JTable into .pdf format. > > I use the sample code given on their web site: > http://itextdocs.lowagie.com/examples/com/lowagie/examples/objects/tables/alternatives/MyFirstTable.java > > > This is all the code, but I guess only the function print() is important > to answer my questions: > 1. Why when g2 is created they use cb.createGraphicsShapes(500, 500) but > when it is changed later on they use g2 = cb.createGraphics(500, 500) > > 2. I can't figure out how to resize my JTable in the pdf file. When I > change the arguments of createGraphicsShapes(x, y), i get the table > clipped off and also its location in the page changes. > > 3. Is there any way to print also the JTable header, because now only the > table contents are printed to the .pdf file. > > I'd be really grateful if you could answer at least one of my questions! > Thanks in advance! > > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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
