|Published (Last):||25 September 2011|
|PDF File Size:||13.28 Mb|
|ePub File Size:||14.54 Mb|
|Price:||Free* [*Free Regsitration Required]|
When creating PDF documents , the first thing we usually do, is create a header and footer for every page. At the bottom of the page we can optionally include a copyright symbol followed by some text.
In the bottom right corner you can find the current page number , followed by the total number of pages. In this tutorial we demonstrate how to add a header and footer in a PDF document using iText. The com. By extending from this class and overriding these methods, we can write additional data to the PDF document when these events occur. Here you can see the result. The PDF document we generated contains a clean header with an image. The footer contains a copyright symbol on the left.
On the bottom right you can see the current page number together with the total page number. January 22, February 20, June 23, I have a problem with the footer, because it overlaps the text that I put in the body of the document. Do you know how I fix it so they do not overlap? Thanks for this. A few changes in this very code and i got my problem solved.
Discover more articles. Download it — adding-header-footer-pdf-itext-example. Notify of. Oldest Newest. Inline Feedbacks. September 19, Jakob Schade. January 19, September 15, Aiden Tumwesigye. January 23, Would love your thoughts, please comment.
Subscribe to RSS
Adding Header and Footer in PDF using iText in Java