Paul Gatewood wrote:
>> Use this form to create a new PdfReader and PdfStamper object.
>> Use the coordinates retrieved earlier to add the content on
>> page 5. The rest is similar to what you're already doing now,
>> with as main difference that the 'normal' fields on page 5 are
>> no longer acrofields, but real content (and part of the imported
>> page).

> I will use the examples in Ch. 14 as well as search this list for help on 
> this,
> but if you have any recommendations, based on this particular situation, I 
> would
> be grateful.

In Chapter 14 "page X of Y" is added using page events.
In your particular situation, you already have a PdfStamper
object. Also when you're done adding the "large field", you
know the total number of pages (5 + the number of times you
inserted a new page).

So the best way to add "page X of Y" is to write a for-loop
that gets the OverContent of every page and adds the "page
X of Y" string at an absolute position.

There's no need to use page events, and no need to use a
PdfTemplate object. You can add the complete String with
the page information directly.

best regards,
Bruno

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to