Hello, As I did not receive any feedback yet, I have added two images illustrating the problem. My goal is: Left and right column should have their top (the top of printed chars or images) on the same height.
Regards, Peter Henningsen -------------------------------------------------------------------------- Hi, I have been searching and experimenting for some time now, but found no suitable solution (I got the book!). Maybe you have? The problem: I have two columns on one page to fill with content. No problem doing this, but the visible top of both columns is not aligned consistently. Columns are constructed via setSimpleColumn and filled in composite mode. iText version is 2.1.7 Positive example: The first item in the left column is an image (scaled to fit), the first item in the right column is a big title text. Image and Text are added using seperate columntext objects for each column. The top of the image is about half the fontsize higher than the top of the title text's glyphs UNLESS I use ct_title.setUseAscender(true)on the left column. So I do that and problem solved. Negative example 1: The first item in the left column is an image (scaled to fit) followed by body text. The text (one font-size only) runs down the left column and is continued in the right column. Here, ct_textbody.setUseAscender( true) has no effect on the top of the right column. Negative example 2: The first item in the left column is a Paragraph with big font followed by body text. The text (one font-size only) runs down the left column and is continued in the right column. Here again, ct_textbody.setUseAscender(true) has no effect. So, is there a way to force columntext to kind of "re-do" its "first-line routine" when doing setSimpleColumn() on the right, before go()? Calling setUseAscender(true)once more before setSimpleColumn() did not change a thing. Thanks, Peter
<<attachment: align_error.gif>>
<<attachment: align_ok.gif>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
