Page events (iText 7)

Tags: TextiText 7
I create a PDF using iText. The content consists of text and I need to draw a line to delimit this text every 25 words as shown in the following image: Desired result
I'm generating a PDF report with iTextSharp, the header of the report has the information of the customer. In the body of the report contains a list of customer transactions. My doubt is: How to generate a header dynamically for each client?
I am working with iTextSharp trying to add an header and a footer to my generated PDF, but if I try to add an header that have width of 100% of my page I have some problem.
I'm creating a pdf with iText 5 and want to add a footer. I did everything like the book "iText in action" says. There are no errors but the footer doesn't show up. Can somebody tell me what I'm doing wrong?
I want to add footer with 2 rows. The 1st row will have the document name with a background color. The 2nd row will have copyright notices. I tried to create this table using ColumnText , but I am not able to set the background color for the row (only the text is getting background color).
I need to make a PDF like this: Example
Is there a way to check to see if a page event has already been added to a PdfWriter object? If so, can you also remove that page event?
On Button Click, I generate 4 pages on my PDF, and I add an image to provide a background image. It works only with 1 page. When I generate a PDF that contains many records and that has several pages, the image is only added to the last page. I want to apply the background image to all of the pages.
I'm creating report based on client activity. I'm creating this report with the help of the iText PDF library. I want to create the first two pages with a blue background color (for product name and disclaimer notes) and the remaining pages in white (without a background color).
I'm using iText to create a PDF document. Right now I am trying to get a rectangle on every single page of the document but I'm not sure how to do this.