Bookmark element

Bookmark element

You can make InterFormNG2 add a bookmark element in the output PDF with the design element, Bookmark element. The element only has an effect on merges into PDF. You can decide, if the bookmarks should be shown when the PDF file is opened and to which level the bookmarks should be opened in the template element inside the template.

 

To insert a bookmark you need to click on this icon in the designer:

 

NG2DesignerBoomark0001

 

You can find the icon here:

 

NG2DesignerBoomark0002

 

The parameters of the bookmark element are these:

 

NG2DesignerBoomark0003

 

 

NG2DesignerBoomark0004

In this header you setup the appearance of the text of the bookmark in the output PDF file. With these 3 settings, you can setup the color, bold/normal and italic/normal.

 

Value

This is the text to insert as the contents of the bookmark. This can either be a fixed text or an XPath expression, that returns the text.

 

Level

The bookmark level. Level 1 is the highest, most signification level.

 

Position

Here you can state where to position/target the PDF viewer, if the user clicks on the bookmark.

 

Position mode

Here you can select between these modes:

Dynamic placement depending on surrounding contents

The target of the bookmark is relative/dynamic i.e. positioned directly after the previous design element, that was positioned dynamically.

Fixed position relatively to parent container

If this is selected the next parameters are used in order to specify the target position. The X and Y coordinates can also setup as an XPath expression.

 

X-axis

The distance from the left edge of the target position (relatively to the container in which the bookmark element is inserted), if the position mode is Fixed position.

 

Y-axis

The distance from the top edge of the target position (relatively to the container in which the bookmark element is inserted), if the position mode is Fixed position.

    • Related Articles

    • Comment element

      You can use the comment element to document the structure and changes to templates. To insert a comment in your template you need to insert the comment element with this icon: You find this icon by clicking the '+' icon to reveal the second row of ...
    • Select element

      In the designer there are two conditional elements: The If element and this, the select element. The select element is an advanced version of the If element, that makes it possible to branch out to different sub-folders with elements, depending on ...
    • If element

      It is possible to specify, that some design elements should only be included if a certain condition is met. For that you can use the If element as described below. A more advanced option is to use the select element. You can insert an If element with ...
    • Cell element

      When you insert a table element in the designer, then each block of the table is referred to in InterFormNG2 as a cell. There is no limit the the element types, that you can insert inside a cell; you can even insert a table in a cell. So most of the ...
    • 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 ...