Op 8/02/2011 10:54, Yuri Sarzi schreef: > you are referring to showTextAligned() method for PDFContentByte, not > for ColumnText (even if they are quite the same).
Does that matter? What was the original requirement? > I followed this > http://www.javadocexamples.com/java_source/com/lowagie/examples/objects/tables/pdfptable/VerticalTextInCells.java.html) Hey, that's a very old example! You should only look at the more recent book examples. > > cb.rectangle(50, 712, 132, 19); > cb.rectangle(50, 693, 132, 19); > cb.rectangle(182, 693, 15, 38); > > How do i do? I don't want to appear boring, but i'm not able to use > the nice and simple instructions that you gave me..but i would! What are you trying to achieve? Did you read the documentation? Seems like you're asking me to copy large parts of the book in a mail message. Some simple rules: - if you need to add one line at an absolute position: * use showTextAligned() => in ColumnText if you want code that is easy to write. => in PdfContentByte if you want full control. - if you need to add text distributed over different lines: * use ColumnText, add content in text mode or composite mode, define the rectangle with setSimpleColumn(), invoke go(); * use PdfPTable (a table with one column and one cell) and writeSelectedRows() if you want extra's such as borders, backgroundcolors,... Don't expect somebody at the mailing list to tell you EXACTLY what to do. We don't know the context of your requirements, nor are we interested in that context. I don't think the main problem is the language (Italian versus English). I think that you're trying to run before you can walk. You need to learn the differences between using PdfContentByte, ColumnText and PdfPTable. If you're using ColumnText and PdfPTable, you need to know the difference between text mode and composite mode. Stop struggling: http://twitter.com/#!/planet_Claire/status/32987951419887616 ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
