Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Creating pdf template and Detecting end of page

SwamiNathan Vaidyanathan

2006-11-20

Replies:

Hi,

I am new to iText, so bear with me if this is a stupid question. I am trying
to create a pdf document with text fields ( which I am calling as the "template"
). This document has just one page and I need to add this to the end of another
pdf. The issue here is there could be a lot of data that I need to add into the
template and it could spill into a new page. I need to detect if the page ( in
the template ) is full and then add a new page from the template and do this
iteratively. Do you know,

1. How to detect if the page has reached the end ?
2. How to add a new page to the end of a pdf document ?

If you could send me a sample code, that would be very helpful.

Any help would be appreciated.

Thanks,
Swami


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.