I had a similar requirement and PdfPTable worked just fine for me except for
the fact that I was not able to detect tables breaking across pages thus
unable to write warnings like Ctnd on next page and ctnd from prev page in
the new page.
To resolve the issue I locally patched PdfPTable to notify listeners of the
table split event which helped me display split warnings in the page. I was
thinking of submitting the patch to sourceforge. However, it may not be
acceptable because it will break backward compatibility. Do you guys also
think that it is important to know about table split event?
Thanks
Nurettin
On Wed, Oct 13, 2010 at 12:20 PM, Mark Storer <[email protected]> wrote:
> So long as you're not directly manipulating the PdfContentByte, page
> breaking & layout flow is handled for you by ColumnText, PdfPTable,
> Paragraph, Document, Etc etc etc.
>
> --Mark Storer
> Senior Software Engineer
> Cardiff.com
>
> import legalese.Disclaimer;
> Disclaimer<Cardiff> DisCard = null;
>
>
>
> > -----Original Message-----
> > From: riffla [mailto:[email protected]]
> > Sent: Wednesday, October 13, 2010 2:38 AM
> > To: [email protected]
> > Subject: [iText-questions] Choice of "method"
> >
> >
> > Hi
> >
> > Having ordered the book "iText in Action" but not reveived it
> > yet - I now need some advice here.
> > I wonder which way I should go if I have the following
> > consdiderations to
> > make:
> >
> > - The PDF will be generated dynamically built upon data
> > collected in several web forms (nothing strange about this)
> > - But there are several parts where I don't know the length
> > of ahead. For example the users is submitting multiple
> > instances of certain strings - which could be implemented
> > using PdfPTable - but how about page breaks here, will a
> > PdfPTable automatically continue on the next page (and I
> > might need a table header on each subsequent page informing
> > that this table/list belongs to table/list from previous page)
> > - And depending on other selections the user has made, some
> > text blocks may vary in size. Is ColumnText a bad choice here
> >
> > Summarizing the nature of the PDF that is to be genereated is
> > that I need automatic page break detection, and some
> > automatic flow since I don't know the size of lists and
> > length of texts ahead. And, additionally, we need to have a
> > template to be loaded containing a first page header (logo, address
> > etc) and a document-id vertical oriented in the left page
> > margin, where the last 4 digits is corresponding to the total
> > number of pages (dynamic) in the generated doc and the
> > current page's sequential position within the PDF.
> >
> > Any advice?
> >
> > /R
> > --
> > View this message in context:
> > http://itext-general.2136553.n4.nabble.com/Choice-of-method-tp
> 2993417p2993417.html<http://itext-general.2136553.n4.nabble.com/Choice-of-method-tp%0A2993417p2993417.html>
> > Sent from the iText - General mailing list archive at Nabble.com.
> >
> > --------------------------------------------------------------
> > ----------------
> > Beautiful is writing same markup. Internet Explorer 9
> > supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5,
> > and DOM L2 & L3.
> > Spend less time writing and rewriting code and more time
> > creating great experiences on the web. Be a part of the beta today.
> > http://p.sf.net/sfu/beautyoftheweb
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > 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
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com
> > Version: 9.0.862 / Virus Database: 271.1.1/3192 - Release
> > Date: 10/12/10 11:37:00
> >
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> 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
>
--
Nurettin DAG
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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