Use a List. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Alert Management Consultants P Ltd.,
> Sent: Tuesday, March 01, 2005 8:09 PM
> To: [email protected]
> Cc: vadivelan
> Subject: [iText-questions] CLARIFICATIONS REGARDING THE 
> "ColumnText" IN ITEXT
> 
> Respected sir/madam,
>  
> Here is my question:
>  
> ************************
> String copyrest="1.Wake up early in the morning and do 
> exercise\n2.Do take the coffee\n3.Then get lost to office."
>  
> 
>            Phrase ph1 = new 
> Phrase(copyrest,FontFactory.getFont("VERDANA" , 10, 
> Font.BOLD,Color.black));
>             ColumnText ct21 = new ColumnText(cb);
>             ct21.setSimpleColumn(ph1, 
> (CONx),(CONy),CONw,CONh, CONg, Element.ALIGN_LEFT);
>             ct21.setExtraParagraphSpace(5);
>             ct21.go();
> ************************
>  
> The result in the pdf report was like this
>  
> 1.Wake up early in the morning and
> do exercise
> 2.Do take the cofee
> 3.Then get lost to office.
>  
> 
> But i want like this(numbers should be in separate line)
> 1.Wake up early in the morning and
>    do exercise
> 2.Do take the cofee
> 3.Then get lost to office.
>  
> 
> But i dont want adding the empty space in the string 
> "copyrest" which enables the making of space at the correct location.
>  
> Is there any method available for finding the control of line 
> i.e whether the line comming to next line ( here the number 1 
> string in comming next line but not the number 2 and 3  strings)
>  
> Awaiting for your reply,
>  
> Vadivelan
> ([EMAIL PROTECTED])
>  
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to