________________________________
De: [EMAIL PROTECTED] em nome de [EMAIL PROTECTED] Enviada: ter 08-Ago-06 13:39 Para: Post all your questions about iText here Cc: [email protected] Assunto: Re: [iText-questions] iText questions 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) > The first draws the fonts as shapes and the second includes the fonts but you'll have to map them. > 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. > You must use a transformation in Graphics2D. > 3. Is there any way to print also the JTable header, because now only the > table contents are printed to the .pdf file. > Not iText related. Paulo > 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 Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
<<winmail.dat>>
------------------------------------------------------------------------- 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
