Hi John,

On 2 August 2011 18:13, O'Hanley, John <John.O'han...@cra-arc.gc.ca> wrote:

> **
> Hi,
>

First of all, you mention you use iText 1.4.5. This version is almost 5
years old (september 2006), and no free support is provided on this list to
such an old version. The codebase underwent a major refactoring since then,
a huge amount of funcitonnalities were added, some were removed. You might
as well be on your own here...

I am creating a pdf containing a table. I need to size the pdf such that:
>   - the pdf uses a single page only, regardless of the height of the table
>  - no extraneous white space appears at the bottom
>
> I want the pdf to contain the table, the whole table, and nothing but the
> table, on *a single page*. (I'm actually creating an image of the resulting
> pdf, but that's likely irrelevant in this context.)
>
> It usually works. However, when there is *line-wrapping* of wide text in a
> cell(s), then then it sometimes succeeds, and sometimes fails. It seems to
> fail after the amount of wrapping exceeds some unknown amount. It fails in
> the sense that the pdf is spread over 2 pages, not 1.
>

What do you mean by "amount of wrapping"?

 The pertinent sections of my Shakespearean-yet-oh-so-faulty code look like
> this:
>

This is not a standalone running piece of code. Should anyone be eager to
help you with such an old release, he or she wouldn't really be able, since
there is no way to quicly reproduce the problem you noticed.

[...]

 Do you know where I'm going wrong? I've whacked away at it in the obvious
> ways, but the problem persists..
> Any help appreciated,
>

I don't know if this class already existed in version 1.4.5, but you could
give a try using ColumnText.

Cheers,
alexis
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to