and the output is like " hello 1" on the first page. it works fine.
but now i am trying to add an image and page number to the header.
it would be really greatful if any one share experience on the same.
Joined: Mar 22, 2005
See https://www.coderanch.com/how-to/java/ItextExample for how to create headers and footers. By the way, you're aware that itext 5 requires you obtain a paid license for just about any commercial use, yes? (Unless you want to distribute the source code of your app widely.)