|
Variables |
Top Previous Next |
|
Besides the basic principle of the n2pdf Server Task (the assembly of the PDF file from Notes documents or RichText fields), it is also possible to define the contents of Notes fields (which are not RichText fields) as variables, and integrate these into the content of the PDF file. You can use such a variable in the "Body" field or in the headers and footers (see "Page Settings") of the Job Document. A variable always has the name of the Notes field and is enclosed in square brackets (e.g.: [Server]).
The options for the variables are described below, with an example for the definition of a variable:
The option "Use variables" activates the function of variable generation and replacement.
In the following option "Notes field names", enter the names of the Notes fields that you want provided as variables. If you need multiple variables, separate them with a semicolon (;). The field names entered here are at the same time the names of the variables (enclosed in square brackets) that you can position in the content or in the header and footer.
The fields which contain Notes names represent a special feature in the Notes fields. These fields can also be used as variables. You have a few more options here for formatting the content.
Example of the definition of a variable with the sample database In the "Data source" tab, the sample database was set with the view "Log". In the "Variables" tab, set "Use variables" to "Yes". The definition of variables is then activated. In the field "Notes field names", enter the name of the Notes field "Server". Each document in the log file documents has a field named "Server". As a result of the entry in the Job Document, the content of the field is supplied as a variable. You can then use this variable e.g. in the header of the document.
If you now create the PDF file, the name of the server will appear in the header on each page of the PDF document.
|