In France I takes about 2 weeks to get the book (I have ordered it yesterday
at Amazon.fr).
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)
.
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.
Gege
Bruno Lowagie (iText) wrote:
>
> gegemartinelli wrote:
>> The Rectangle values for A4 format are : width = 595, and height =842
>> in which unit are these values ?
>
> They are in user units.
> By default 1 user unit = 1 point.
> There are 72 points in 1 inch.
> This is documented in the tutorial
> and in the book.
> 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/
>
>
--
View this message in context:
http://www.nabble.com/Which-unit-values-are-returned-from-Document.getPageSize%28%29-tf3081880.html#a8598792
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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/