Hi My question is about how to get a handle to the vertical position using different "render" modes.
Using document.add(paragraph) affects the writer.getverticalPosition(t/f) which is perfect and that gives me a chance to set the starting position when I need to add a table using writeSelectedRows. But if I need to handle the opposite situation? After a table is added using the previous mentioned method I know that method returns the vertical position of the bottom row (lower edge I assume), but then if I want to add another paragraph (or chunk) - using document.add - right after the table is inserted, there is no way to move the writer to that position. I've tried to keep track of the height of the latest rendered table and adding that as a leadingBefore at the first attempt to use document.add() (and after that I reset the latest table height to zero), but I'm not sure this is the way to go 'cause I'm having problem with this when another thing is taken into consideration, page breaks. Any general advice in this? /R -- View this message in context: http://itext-general.2136553.n4.nabble.com/Vertical-position-in-combined-mode-tp3016907p3016907.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ 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
