Op 24/05/2012 12:56, Michael Maciak schreef:
Dear iText team,I have got an issue with the space length, I need to format some rows in the same position but the width of single chars and spaces are different, destroying my format.
Er... That's normal when you're using proportional fonts. In your case: you're using Helvetica. That's a proportional font. See http://en.wikipedia.org/wiki/Proportional_fonts#Proportion
I am used Phrases, Paragraphs different Fonts and I couldn't fix this.
It's not a shame if you need to ask something (that's what a mailing list is for), but it's kind of embarrassing if you give the impression you've done your best finding an answer to a trivial question, so please don't exaggerate by saying you've tried plenty of things. Just my 2 cents, I hope you don't take offense.
Thx for any advice. I attached the file so it is easier to see the problem.
There is no problem! It would be a huge problem (ugly results) if the width of the chars and spaces of font Helvetica all had the same font. Use a monospaced font such as Courier: http://en.wikipedia.org/wiki/Monospaced_font
Note that there are much better ways to define a layout apart from using spaces to position text. You may want to explore those other options for your customer.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ 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
