gegemartinelli wrote: > In France I takes about 2 weeks to get the book (I have ordered it yesterday > at Amazon.fr).
I didn't know that, sorry. > Your answer is clear, however it does not explain why rows do not start > exactly where I want (for the first one it is OK) I didn't read the whole question due to lack of time. (I'm doing 10 things at a time here.) > Are the following instructions correct ? > table.addCell(new Phrase(......)); > ........ > table.writeSelectedRows(0, -1, 10, position[curpos] , > writer.getDirectContent()); > > each position value where set by > > float ref= document.getPageSize().width()/8 ; > for (i=0; i<8; i++) position[i] = (ref)*(8-i) ; > > > For example my A4 page is 29,7 centimeters height. I should expect the 5th > row starts at 29.7/2 = 14,85 but in reallity it starts at 14.25 cms. > Therefore my lines do not print at the right place. > > Certainly I missed something but I don't know what. I don't understand your code. You fill the position array with values that depend on the width, but you use these values for setting the Y coordinate. I don't understand the complete picture, and as I said: I have very little time right now, so I would appreciate it if you did some more research yourself first. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
