ONYX - 9.0 - Utilisation
Document footer management in XML
Sommaire
Introduction
This section describes the procedure for handling fixed-height document footers dynamically (presented only on the last page) at the body of a document.
Prerequisites
- Have a good foundation on how Designer works in XML mode
- Know the structure of the XML Designer file
Principle
The idea is to embed the document footer into a group or text areas. In fact, the objects containing the document footer must be either text areas (text objects), or groups, as they must be handled by the program after the group is executed potentially generating a page jump. These objects will be conditioned on the "not triggering" of a page jump. Concretely, these objects will only appear if the current page does not generate a page jump, which means they will only appear on the last page of the document.
Additionally, it is essential to ensure that the footer(s) can fit in the space on the page. So the main group (which generates a page break) must check that the document footer has enough room to display. If this is not the case, a page break must be made before writing the document footer. To do this, a specific type of line will be used at the end of the main group in order to create an area whose height (working space) will be at least equal to that of the document footer.
Example
The idea is to use the following group as a document footer. In our example, we have a special line at the end of the main group named RESA_SPACE. We apply a zone with a front spacing of 3cm. (this allows you to reserve the place for the document foot)
We condition the RESA_SPACE zone on the presence of the line type "RESA_SPACE"
In our case, the document footer is 2 tables (VAT breakdown and totals table)
This includes all the elements required to design the VAT breakdown table of a document. This must only be present on the last page of the document.
The group must be conditional on not triggering a page break: