I don't know how can you mix setTotalWidth() and setWidthPercentage() and
obtain different results. setTotalWidth() only matters with
writeSelectedRows() and setWidthPercentage() only matters with
Document.add(table).
When I ask for a runnable example I'm not offering to debug your program. A
smaller program built for demonstration helps to understand better the
problem and usually the user finds the solution himself.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Marc Lustig" <[EMAIL PROTECTED]>
To: "'Paulo Soares'" <[EMAIL PROTECTED]>; "'iText list'"
<[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 14:04
Subject: AW: [iText-questions] writer.fitsPage(table) returning false even
if there's space enough


Stop. I solved this by replacing
t.setWidthPercentage(100);
with
t.setTotalWidth(document.TOTAL_WIDTH);
where t is the table which covers the PdfPCell returned by my method.

The strange thing is that now the width of the table is only 2/3 of real
TOTAL_WIDTH!  I am using TOTAL_WIDTH to set the width of numerous other
tables and lines etc., and everywhere the width is okay, except in this
case.

Perhaps you have an idea... I will be digging into this further...

Regards

Marc


> -----Urspr�ngliche Nachricht-----
> Von: Paulo Soares [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 23. August 2003 14:06
> An: Marc Lustig; iText list
> Betreff: Re: [iText-questions] writer.fitsPage(table)
> returning false even if there's space enough
>
>
> I would like to see a runable example with that behavior.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Marc Lustig" <[EMAIL PROTECTED]>
> To: "iText list" <[EMAIL PROTECTED]>
> Sent: Friday, August 22, 2003 17:38
> Subject: [iText-questions] writer.fitsPage(table) returning
> false even if there's space enough
>
>
> > Hi again,
> >
> > I tried to solve the problem another way and use
> > writer.fitsPage(table); to check whether there is enough
> space or not.
> > Strangely this doesn't work either: writer.fitsPage(table) returns
> > false even when the table covers only 2/3 of the available space of
> > the page. It always allows 32 rows, independently where the table
> > starts, and then returns false. How comes that? It it a bug?
> >
> > Regards
> > Marc
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a single
> > machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual
> > machines at the same time. Free trial click
> > here:http://www.vmware.com/wl/offer/358/0
> > _______________________________________________
> > iText-questions mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to