Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem while generating PDF using iText  RSS feed

 
Balaji Kadam
Ranch Hand
Posts: 31
Hibernate Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi:

I have generated PDF using iText, where i have written all code in sequential flow.



And i have added all fields in the document.

But my problem is how to display total pagecount on all pages e.g.1\20 (because i have generated PDF sequentially)
Also i want to add watermark on all pages.

So, can any body help me to solve this problem?


Thank You,
Anup Desai
 
Tim Moores
Saloon Keeper
Posts: 3511
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding page numbers is shown here: http://www.coderanch.com/how-to/java/ItextExample

itext adding watermarks finds examples of exactly that real quick. Pay attention to the iText package names being used - the APIs differ between iText 2 and iText 5 (and you probably don't want to use iText 5).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!