Use a table or the new tab spacing. Examples at 
http://1t3xt.info/examples/browse/?page=toc&id=367.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Suresh
> Sent: Thursday, August 28, 2008 9:30 AM
> To: [email protected]
> Subject: [iText-questions] To print a line of words with
> specified spaces
>
> Hi,
>
> I'm trying to print two lines with spaces for alignment.
>
> Lets say,
>
> CUSTOMER :  Name
> DATE            :  Date
>
> But when I create pdf by passing above text. I could not able get the
> exact spacing as above. It prints something like below:
>
> CUSTOMER : Name
> DATE    : Date
>
> How do I meet this requirement in iText.? Did anybody face
> this scenario
> before? Is there any workarounds available?
>
> p = new Paragraph(new Chunk(str,pfont));   // str = "CUSTOMER :  Name"
> document.add(p);
> p = new Paragraph(new Chunk(str,pfont));   // str = "DATE            :
> Date"
> document.add(p);
>
> Thanks,
> Suresh


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.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to