add header image itextsharp c#
I thought that when you set the margins on ITextSharp document, you set also the margin for the header. but then I realized the margins are just the margins, and there is no headers by default on ITextSharp.
In order to add a header in ITextSharp, you have to use PageEvent.
And implement the class HeaderFooterFDA2, you can rename that class.
To avoid header overlaps your content, when there are a lot of content that break on a new page. You have to set an additional margin on the method WriteSelectedRows(), in my case I added + 70 units.
I hope It helps you.
Comments
Post a Comment