----- Original Message ----- From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 2004 10:21 AM Subject: [iText-questions] Re: AW: additional space in table cells - alignment problems
> OK Steve, you can go ahead and upload PdfDocument.java Done - Here is the FAQ entry you asked for: Why did the spacing for my Table change from what was in version 1.0*? Some bugs were fixed related to the Table class that have changed how some spacing was calculated. Outside of the table, extra spacing is added based on the table offset (Table.setOffset) or the current leading if the table offset is not set. The current leading is the leading of the last content added to the document (0 if the table is the first thing in the document). In version 1.02b, spacing outside the table worked like: Previous Content blank line with height = table offset + 6pt Table blank line with height = table offset Starting with version 1.1.2, spacing outside the table works like: Previous Content blank line with height = table offset Table Some spacing has changed inside the Table also. Inside Cells, the spacing of lines used to be based only on the Cell leading (Cell.setLeading). This caused problems if the content of the cell had different leading than the Cell. As of version 1.1, the Cell content uses the leading of the content for all content derived from Phrase. There is another handy feature of Cell (added in 1.1) that may let you generally ignore leading and have the height automatically set - use Cell.setUseAscender(true) and Cell.setUseDescender(true). ------------------------------------------------------- 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
