It's possible but difficult and probably slow. The behaviour would never be
the same when crossing pages.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Matt Benson [SMTP:gudnabrsam@...]
> Sent: Sunday, October 28, 2001 15:12
> To: Paulo Soares
> Cc: itext-questions@...
> Subject: RE: [iText-questions] table across pages
>
> Paulo:
> This may be useless, but I thought it would be an
> idea worth considering. I realize how frustrating it
> must be for you to have written PdfPTable and know how
> much better it functions than does the Table class.
> Would it be possible, I wonder, to change iText's PDF
> implementation so that a PdfPTable is used behind the
> scenes to represent a Table when writing to PDF? This
> could eliminate the myriad problems with Table while
> preserving the simplicity of its interface and its
> output format neutrality (the two reasons why I
> continue to use Table). I don't know what would be
> involved to do this but it could be worthwhile
> considering the number of Table questions still
> pouring in. What do you think?
>
> -Matt
>
>
> --- Paulo Soares <psoares@...> wrote:
> > I'm aware of some of the table problems but as I
> > said before I found the
> > Table class so helpless that I found it easier to
> > create my own table
> > (PdfPTable).
> >
> > Best Regards,
> > Paulo Soares
> >
> > > -----Original Message-----
> > > From: hong sun [SMTP:hong_sun@...]
> > > Sent: Friday, October 26, 2001 16:27
> > > To: Paulo Soares
> > > Cc: itext-questions@...
> > > Subject: RE: [iText-questions] table across pages
> > >
> > > Paulo,
> > > Thanks, but I don't want to simply eliminate the
> > border...
> > >
> > > What I want is to match the left and right border
> > to the bottom one when
> > > table across pages.
> > >
> > > Atached is a sample file which shows the problem.
> > >
> > > Hong
> > >
> > >
> > > >From: Matt Benson <gudnabrsam@...>
> > > >To: Paulo Soares <psoares@...>, hong sun
> > <hong_sun@...>
> > > >CC: itext-questions@...
> > > >Subject: RE: [iText-questions] table across pages
> > > >Date: Fri, 26 Oct 2001 08:18:37 -0700 (PDT)
> > > >
> > > >Well, there you go. I stand de-corrected.
> > > >
> > > >--- Paulo Soares <psoares@...> wrote:
> > > > > The border width is NOT a bug. For the PDF a
> > border
> > > > > width of 0 means "draw
> > > > > the thinnest possible line in the output
> > device".
> > > > > The correct way to eliminate borders is with
> > the
> > > > > setBorder(NO_BORDER).
> > > > >
> > > > > Best Regards,
> > > > > Paulo Soares
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Matt Benson
> > [SMTP:gudnabrsam@...]
> > > > > > Sent: Friday, October 26, 2001 15:26
> > > > > > To: hong sun
> > > > > > Cc: itext-questions@...
> > > > > > Subject: Re: [iText-questions] table across
> > pages
> > > > > >
> > > > > > I don't know, that looks funny, huh? For
> > the
> > > > > benefit
> > > > > > of the group, the sample showed the left and
> > right
> > > > > > table borders descending lower than the
> > bottom
> > > > > border.
> > > > > > I just do like everyone else and look for
> > > > > answers, I
> > > > > > don't know much about the Table class
> > really. You
> > > > > > should send the borderWidth fix to iText's
> > bugs
> > > > > > address.
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- hong sun <hong_sun@...> wrote:
> > > > > > > Matt,
> > > > > > >
> > > > > > > For the problem of missing bottom-line
> > when
> > > > > table
> > > > > > > across pages, I found your
> > > > > > > solution in CVS.
> > > > > > > But it also causes another trouble. when
> > table
> > > > > > > borderwidth is set to zero,
> > > > > > > the line is still drawn.
> > > > > > >
> > > > > > > I add another condition on it:
> > > > > > >
> > > > > > > if ((table.border() & Rectangle.BOTTOM) ==
> > > > > > > Rectangle.BOTTOM &&
> > > > > > > table.borderWidth()>0 )
> > > > > > >
> > > > > > > Seems OK.
> > > > > > >
> > > > > > > Now, another thing.
> > > > > > >
> > > > > > > The last row of cells seems to be
> > splitted. look
> > > > > at
> > > > > > > attached sample, the
> > > > > > > left and right lines are longer than
> > bottom
> > > > > line...
> > > > > > >
> > > > > > > Any solution here?
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > Hong
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > >From: Matt Benson <gudnabrsam@...>
> > > > > > > >To: itext-questions@...
> > > > > > > >Subject: RE: [iText-questions] table
> > across
> > > > > pages
> > > > > > > >Date: Thu, 11 Oct 2001 06:17:49 -0700
> > (PDT)
> > > > > > > >
> > > > > > > >I don't think it's quite as bad as all
> > that...
> > > > > > > >although you are entitled to your
> > opinion. :)
> > > > > > > >Anyway, I submitted a fix for this
> > particular
> > > > > bug a
> > > > > > > >few weeks ago prior to the release of
> > 0.70 .
> > > > > If
> > > > > > > you
> > > > > > > >use the latest version you should not see
> > this
> > > > > bug.
> > > > > > > >
> > > > > > > >
> > > > > > > >--- Paulo Soares <psoares@...>
> > wrote:
> > > > > > > > > Don't direct Table questions to me. I
> > think
> > > > > that
> > > > > > > the
> > > > > > > > > Table class is broken
> > > > > > > > > beyond repair and if you are crossing
> > pages
> > > > > it's
> > > > > > > > > even worse. I'll answer
> > > > > > > > > questions on PdfPTable though.
> > > > > > > > >
> > > > > > > > > Best Regards,
> > > > > > > > > Paulo Soares
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: hong sun
> > [SMTP:hong_sun@...]
> > > > > > > > > > Sent: Thursday, October 11, 2001
> > 3:15
> > > > > > > > > > To: Paulo Soares
> > > > > > > > > > Cc:
> > itext-questions@...
> > > > > > > > > > Subject: [iText-questions] table
> > across
> > > > > pages
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Hi, Paulo
> > > > > > > > > >
> > > > > > > > > > A question here.
> > > > > > > > > >
> > > > > > > > > > Look at attached file.
> > > > > > > > > >
> > > > > > > > > > when pagebreak happens on certain
> > position
> > > > > in
> > > > > > > a
> > > > > > > > > cell, an umknown line
> > > > > > > > > > comes
> > > > > > > > > > out, I tried set table bordercolor
> > to
> > > > > white,
> > > > > > > cell
> > > > > > > > > bordercolor to white,
> > > > > > > > > > and
> > > > > > > > > > borderwidth to 0, just no use...
> > > > > > > > > >
> > > > > > > > > > Any idea?
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >
> > > > > > > > > > Hong
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > >
> >
> === message truncated ===
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
|