Short explanation

ITP offers a set of functions and configuration options that allow a variety of properties related to the layout, styling, the content of headers and footers.

Page layout

Page settings like margins and paper size can be defined in a page style template document. This is a regular Microsoft Word document that contains the specific page settings for a certain label and document type. The model development language provides the function pagestyle, which allows you to specify a label name and a document type. The values of these parameters can be created dynamically. When the function is called it will produce a section in the document that will get the properties that are defined in the page style template for the specified label and document type.

ITP/Server takes the page properties from the appropriate page style template after the ITP Model has run and applies them to the result document. ITP/Server solves this in the same way for post-includes.

Headers and footers

With the standard functions headers and footers you can define which content to use in the headers and footers for each section in the document. Both functions allow you to specify the contents for first-, odd- and even pages.

Rich Text Blocks

With Rich Text Blocks it is possible to create and modify document content using Microsoft Word as editor. This enables the use of tables, pictures, and advanced formatting in content items that are loaded dynamically at runtime. Rich Text Blocks can also be used to create the contents of headers and footers.

Styles

The properties of styles in the result document can be defined in a style sheet template document. This is a regular Microsoft Word document that contains the specific style properties for a certain label and document type. The model development language offers the function stylesheet. This function works the same as the function pagestyle; ITP/Server copies the style definitions from a style sheet template document after it has run the model.

The same document produced twice for different labels, resulting in different fonts, margins, and headers.

Brand A

Brand B

Note

Calling the functions stylesheet and pagestyle has no effect on documents created with the functions put_in_document and put_buffer_in_document. We advise not to mix the "old" method with use of the new functions.