I downloaded the itext-paulo-134.jar per your instructions.

I see you have added the ability for an "Element" to be added to the ColumnText object, nice.

I added my Paragraph object (testData) to the ColumnText but it does not paginate as expected. I would expect the ColumnText object to "grow" to accomadate the data in Paragraph and to display this data on as many pages as necessary.

   ColumnText ct = new ColumnText(cb);
   ct.setSimpleColumn(20, 400, 500, 500, 15, Element.ALIGN_LEFT);
   ct.addElement(testData());
   ct.addText(testData());
   ct.go();

The Paragraph only prints within the range defined by the ColumnText object, in my case that would be ct.setSimpleColumn(20, 400, 500, 500, 15, Element.ALIGN_LEFT). It appears that this object constrains the Paragraph object.

Do I need to determine when my Paragraph data reaches the limits set for the ColumnText and build a new ColumnText object to which I add the remaining data in my Paragraph object?

Thanks again for your time.

 

 


>From: "Paulo Soares" <[EMAIL PROTECTED]>
>Reply-To: "Paulo Soares" <[EMAIL PROTECTED]>
>To: "Anthony Massa" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>Subject: Re: [iText-questions] How to paginate data using absolute positioning
>Date: Sat, 14 Aug 2004 10:36:42 +0100
>
>You need the more recent version. It won't work otherwise.
>
>Best Regards,
>Paulo Soares
>
>----- Original Message -----
>From: "Anthony Massa" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, August 12, 2004 21:18
>Subject: [iText-questions] How to paginate data using absolute positioning
>
>
> > Paulo,
> > I need clarification on implementing a ColumnText in my report per your
>last email response.
> > I am including responses to your original email.
> >
> > Paulo: You"ll need the version at itextpdf.sf.net.
> > Response:
> > I am currently using itext-1.01.jar. Is this sufficient? This version
>allows a Phrase object to be added to a ColumnText, is there a version that
>allows a Paragraph to be added?
> >
> >
> > Paulo: Use a ColumnText with your elements inside like List, Paragraph and
>PdfPTable.
> >
> > Response:
> > I instantiated a ColumnText and added in a Phrase object, called
>testData(),as one of the parameters. The object "testData" returns a Phrase
>object populated with a query from the database.
> > ColumnText ct = new ColumnText(pdfContentByte);
> > ct.setSimpleColumn(20, 20, 500, 500, 15, Element.ALIGN_LEFT);
> >    ct.addText(testData());
> > ct.go();
> >
> >
> > Paulo: The table will break correctly as you repeatedly place the
>ColumnText and call go().
> >
> > Response:
> > Although the object "ct" displays at the correct absolute position, the
>"ct" object does not break. Once the page is filled with data for the
>current record, no more data is dispalyed and the next record starts.
> >
> > Why does the "ct" object not break correctly? Should it in this context?
> > Should this object be added to a table and the table added to the
>document?
> >
> > Sorry for all the questions.......
> >
> > Thanks again,
> > Tony
> >
> >
> > --------------------------------------------------------------------------
>------
> > Express yourself instantly with MSN Messenger! Download today - it's
>FREE! ------------------------------------------------------- SF.Net email
>is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R
>4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink &
>Toner - Free Shipping and Free Gift.
>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>_______________________________________________ iText-questions mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>_______________________________________________
>iText-questions mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/itext-questions


Is your PC infected? Get a FREE online computer virus scan from McAfee� Security. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to