Use a fixed spacing font like Courier. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Sunday, September 18, 2005 7:00 PM
> To: itext-questions
> Subject: [iText-questions] how can I control the size of blank spaces?
> 
> Hi,
> I'm building a pdf document and I'd like to know how I can 
> let that the size of spaces 
> is the same as the other characters, for example if I wtite 
> the following lines:
>  
>  Document document = new Document(PageSize.A4, 0, 0, 50, 50);
>  PdfWriter writer = PdfWriter.getInstance(document, new 
> FileOutputStream("charspace.pdf"));
>  String text = "Flanders                                  
> International      Filmfestival Ghent - ...\n";
>  String text2 ="I'd                                       
> like               this\n";
>  document.add(new Paragraph(text));
>  document.add(new Paragraph(text2));
> 
> 
> I obtain a pdf document like:
> 
> Flanders                                    International     
>  Filmfestival Ghent - ...
> I'd                                       like              this
> 
> 
> Thanks,
> 
> Davide
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv 
> or your very
> own Sony(tm)PSP.  Click here to play: 
> http://sourceforge.net/geronimo.php
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to