Home > Enterprise >  How can I insert an element to the bottom of a specific page in iText7?
How can I insert an element to the bottom of a specific page in iText7?

Time:12-16

I'm exploring different options for .NET PDF libraries. One of my requirements is to place a box at the bottom of the first page and if any of the content reaches the box, it should overflow onto the next page.

For example: enter image description here

Shown above, paragraph 7 would normally take up some of the space that's occupied by the "reserved" area. Instead, the part that would have taken up that space is shifted to the next page.

That image was achieved using Gembox.Document by adding the box as a footer element that only renders on the first page. However, in iText7, the examples I've seen for adding a footer (Repeating Area example

Here is a tutorial with code examples of using headers, footers, left/right repeating areas: AddingRepeatingArea tutorial.

Hope, this will help you :)

  • Related