Page overflow

Page overflow

When you insert many dynamically positioned elements in your output, then InterFormNG2 will automatically force a page overflow. This section covers the page overflow in details:

  1. Introduction
  2. Flexible header size.
  3. Flexible footer size - for a total on the last page.
  4. Block protection. How to protect a block of elements from being split up on two pages because of a page overflow.
  5. Page overflow troubleshooting 

 

Introduction

If you add a repeat loop, that iterates across many detail lines of your input file (XML or spooled file), then it will automatically force a new output page, when there is no more room on the current page. 

A simple repeat loop can e.g. simply print out all the numbers from 1 to 100:

 NG2PageOverflow0001

When text elements are dynamically positioned in a vertical flow, they are arranged sequentially beneath each other. If there is no remaining space on the current page, a new page is automatically generated to accommodate the overflow.

 

The output looks like this:

 NG2PageOverflow0002

 

If we also add a header and a footer, then template will look like this:

 NG2PageOverflow0003

 

Before the additional output page is opened for output, the footer will be output to current page - if a footer has been defined for the page element.

 

If you insert a dynamically positioned container element (or any other dynamically positioned elements) in either the header or the footer, then the height of the header/footer is the combined height of all the dynamically positioned elements. Any design element with a fixed position does not affect the size of the header/footer.

    • Related Articles

    • Page element

      The page element in InterFormNG2 is the container of all the physical elements, that build up the output. A new template is created with a page element as you need that in order to generate any output at all. You insert an additional page element ...
    • Page body

      The body section of a page If you add a header or footer element to a page, a body element is automatically included as well. The body elements contains the elements, that should only be executed/inserted once. This section normally includes the ...
    • Page break element

      There are several ways to force an extra page in the output: Add an extra page element An overflow of detail lines in the body of a page. Insert a page break element in your template. This section covers the third option. You can insert a dynamic ...
    • Why detail lines are not overflowing to a new page

      If section can help you, if you have created a repeat loop to output all of the detail lines of a document, but unfortunately the detail lines are not overflowing to a new page. Here are the settings, that can prevent an automatic page overflow of ...
    • Page header

      If you are creating a normal business document e.g. an invoice, then you probably want a fixed header with customer name and address and column headings for the detail lines. Such elements must be inserted in the page header element. To create a page ...