2019.2

Table Of Contents
A Post function script operates directly on the extracted data, and its results replace the
extracted data. For example, the Post function script replace("-", ""); would replace
the first dash character that occurs inside the extracted string.
l
Use JavaScript Editor: Click to display the Script Editor dialog.
l
Trim: Select to trim empty characters at the beginning or the end of the field.
l
Concatenation string:
l
Split: Separate the selection into individual fields based on the Concatenation string
defined above.
Settings for location-based fields in a PDF File
These are the settings for location-based fields in a PDF file.
l
Left: Defines the start of the data selection to extract, counting the number of characters
from the left. E.g. 1 means: start with the first character from the left.
l
Right: Defines the end of the data selection to extract, counting the number of characters
from the left. E.g. 3 means: stop after the third character from the left.
l
Top offset: The vertical offset (the number of lines) from the current pointer location in the
Data Sample (Viewer).
l
Height: The height of the selection box, in the number of lines.
l
Use selection: Click to use the value (Left, Right, Top offset and Height) of the current
data selection for the extraction.
Note
If the selection contains multiple lines, the lines are by default joined and extracted
into one field. To split the lines, select the option Split lines (see below).
l
Post Function: Enter a JavaScript expression to be run after the extraction. For example
replace("-","") would replace a single dash character inside the extracted string.
l
Trim: Select to trim empty characters at the beginning or the end of the field.
l
Type: The data type of the selected data; see "Data types" on page304. If the selected
data is split (see below), this setting is applied to the first extracted field. Make sure that
Page 364