As far as I'm concearned you can do whatever you want with Table. It
won't get worse than it is.

Best Regards,
Paulo Soares 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Steve Appling
> Sent: Monday, December 13, 2004 4:58 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] How should document spacing work 
> for Tables?
> 
> I have been trying to debug some problems with spacing of 
> Tables when rendered to PDF.  I think I
> finally understand some of the differences between 1.02b and 
> 1.1, but I'm not sure what the correct
> behavior should be.  I want to maintain compatibility, but 
> only where the old behavior isn't
> considered a bug.
> 
> Some background -
> In 1.02b, there is a value called heightCorrection which is 
> set at 6 (pts) and used in several
> calculations.  The placement of the tables also depends on 
> the current leading in the document.
> This is set to 0 and is only set to a value if another 
> element that has a leading is added before
> the table is.  Assume a paragraph then two tables are added.  
> A slightly simplified view of the
> positioning is:
> 
> Paragraph
>    heightCorrection + para leading
> Table 1
>    para leading + heightCorrection + para leading
> Table 2
> 
> So given an initial paragraph with a 10pt leading, the result 
> will be: Paragraph, 16 pt space, Table
> 1, 26 pt space, Table 2.  If you don't add the initial 
> paragraph it would be: Table 1, 6 pt space,
> Table 2.
> 
> You can't actually get the tables closer than 6 pts to each 
> other without setting a negative table
> offset (this has been done in some of the samples people sent 
> to me) - this seems wrong.
> 
> The use of the current document leading seems a little goofy, 
> but I am willing to live with it.  I
> don't like the extra 6 pts of heightCorrection or the fact 
> that the leading is added on both sides
> of the table.  The javadoc for setOffset mentions that a 
> newline is added before the table, but
> nothing in javadoc mentions the extra line after the table.  
> I think the one after the table should
> be removed.  This would make it:
> 
> Paragraph
>    para leading
> Table 1
>    para leading
> Table 2
> 
> What does everyone think about this?
> 
> 
> 
> 
> -------------------------------------------------------
> 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://productguide.itmanagersjournal.com/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> 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://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to