On 6/07/2011 10:13, Yevgeniy Cherniak wrote:
Here is the function, and I lose spaces horizontally at the end of rows:
So, you create a Chunk with content text. This text is a String with spaces at the end. You then create a ColumnText object. You are going to use this object in text mode and you set the leading to 0. So you want everything on one and only one line. Then you define the coordinates for the ColumnText object. For this you depend on the textWidth value. You also change the X position using this value. However, I can't see anywhere how you're calculating textWidth: it is passed as a parameter. If you're losing space at the end of the row (to the right for LTR), then it's caused by a wrong value of textWidth. At least, that's my interpretation of your code snippet.So I still can't answer your question unless you tell me how you calculate the textWidth value.
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. 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
