2022.2

Table Of Contents
Examples
l
In a PDF emulation, the format of a selected region could be:
region(?,0.59375,2.21875,1.85416,2.51041,KeepCase,NoTrim)
In this case “? represents the current physical data page processed by the task.
l
In the following rule, the Metadata selection function loops through all datapages in a job, com-
paring their index in the document to a value:
(GetMeta(SelectedIndexInDocument[0], 11, Job.Group[?].Document
[?].Datapage[?]) Equal 0
l
In the following rule, the question mark in the text-based data selection represents the current
page number:
(@(?,1,1,1,9,KeepCase,NoTrim) IS EQUAL TO Page 1 of)
Text-based data selections
Text-based selections are used for text data files such as Line Printer, ASCII and Channel Skip emu-
lations. The selection refers to a rectangular selection that may contain multiple lines, rows, columns on
a given page.
Syntax
@(page number, from line, to line, from column, to column, case option, trim option)
Here is a breakdown of the syntax (all options are mandatory):
l
@(): Always surrounds a data selection.
l
Page Number: The data page number from which you want the data selection to grab the data. If
you want to get data from each page individually, this has to be done after a splitter.
l
From Line: The starting line of the data selection.
l
To Line: the last line of the data selection.
l
From Column: the leftmost character position of the data selection.
l
To Column: the rightmost character position of the data selection.
l
Case Options: This can be one of three options:
l
KeepCase: Keeps the current uppercase and lowercase letters as they are.
l
UpperCase: Converts all letters to their uppercase equivalent.
l
LowerCase: Converts all letters to their lowercase equivalent.
l
Trim Option: Can either be "Trim" if you want to trim empty spaces before and after the data
selection or "NoTrim" if you want to retain the extra spaces.
Page 50