> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Mike Watson
> Sent: Thursday, February 24, 2005 6:26 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] tab spacing and paragraph spacing
> 
> Hi,
> 
> I am using iText (iText-1.2.jar) to generate a pdf document 
> that contains 
> images, and text (in various font sizes and styles).
> 
> The only problems i am having are:
> 
> 1. When adding text that contains tab characters to a Chunk, 
> the tabs are 
> treated as single spaces.
> Is there a way to deal with this via iText's API, or do i 
> have to do manual 
> text manipulation before passing the text to a Chunk?
>

Tabs are not supported.
 
> 2. After each paragraph (consisting of a phrase (consisting 
> of chunks)), there 
> are too many spaces inserted between it and the next paragraph.
> I tried using the setSpacingBefore and setSpacingAfter, but 
> it only works in 
> some cases it seems. That is, it moves an image to the next 
> page, when it 
> appears there is enough room on the previous page for the image.
>

You can play with setLeading().
 
> Any thoughts?
> 
> thx
> 
> 
> 
> 
> 
> -------------------------------------------------------
> 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_id=6595&alloc_id=14396&op=click
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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

Reply via email to