Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] RE : Re: height of row

Eric Rosaz

2006-10-06

Replies:

Ok but when i open the pdf file, it contains only one line. I did another test: when I put 14 caracters in the row, its height is 16, and when I put 15 caracters , its height is 28. 
 
I don't understand why itext calculate 2 rows for 15 caracters instead of 1 ? I try to change de totalWidth, thinking that itext didn't have too much place to put the text in only one row, but the height didn't change.
 
ER
 


Paulo Soares <psoares@consiste.pt> a ?crit :
That looks like two lines: padding = 2+2 = 4, font size = 12.
One line = 2+2 + 12 = 16
two lines = 2+2 + 2*12 = 28

Paulo

> -----Original Message-----
> From: itext-questions-bounces@lists.sourceforge.net
> [mailto:itext-questions-bounces@lists.sourceforge.net] On
> Behalf Of Eric Rosaz
> Sent: Friday, October 06, 2006 11:13 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] height of row
>
> Hi,
>
> I read a lot of mail about the height of the row in PdfPTable
> and I fixed some problems but I still have one.
>
> I had a table with 1 column and always the same thing in the
> rows. I set a total width "tableLigne.setTotalWidth(100f);"
> and when I write 12 caracters in the rows "dddddddddddd", the
> height of the row is 16 and when I write 24 caracters
> "zzzzzzzzzzzzzzzzzzzzzzzz", the height is 28.
>
> It's a bit hard to understand how the height is calculated, i
> understood that it's important to set the width but I don't
> understand how , please can you explain me what's happen?
>
> thks
> ER
>
> ________________________________
>
> D?couvrez un nouveau moyen de poser toutes vos questions quel
> que soit le sujet ! Yahoo! Questions/R?ponses pour partager
> vos connaissances, vos opinions et vos exp?riences. Cliquez
> ici .
>


Aviso Legal:
Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


D?couvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet ! Yahoo! Questions/R?ponses pour partager vos connaissances, vos opinions et vos exp?riences. Cliquez ici.
-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.