Is it possible to do something like this:
int status = ct.go(true);
boolean isFirstPage = true;
while (ColumnText.hasMoreText(status)) {
if (isFirstPage) {
// Write to the first page -- as much as
possible
ct.setSimpleColumn(page1BodyFieldPos[1],
page1BodyFieldPos[2],
page1BodyFieldPos[3], page1BodyFieldPos[4]);
status = ct.go();
isFirstPage = false;
} else {
// Write to the second page -- the rest of the
text.
ct.setCanvas(stamper.getOverContent((int)
page2BodyFieldPos[0]));
ct.setSimpleColumn(page2BodyFieldPos[1],
page2BodyFieldPos[2],
page2BodyFieldPos[3], page2BodyFieldPos[4]);
status = ct.go();
}
}
I have an existing stamper, and I was creating columntext objects for it.
the '...FieldPos' variables are the result of form.getFieldPosition() for
placeholder fields I have in the template doc.
Or is it better to rearrange and use a document with document.newPage?
1T3XT info wrote:
>
> pickm wrote:
>> I have a form letter that has body text that will not fit on a single
>> page.
>> I would like the text to start on the first page, and span to the second
>> page if needed.
>>
>> Is there a way to do this using AcroFields? Right now I am populating a
>> form field, which is very simple.
>
> No.
>
>> From reading through the book in the past, I am guessing I can do this
>> using
>> PdfPCells that roll over pages, but are there other suggestions?
>
> I usually use variations of what is described in section 14.3.1 to
> achieve this.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
>
--
View this message in context:
http://www.nabble.com/Form-letter-body-text----Span-pages--tp22233010p22307997.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php