2022.1

Table Of Contents
Method Description File type
which usually starts at 0.
"currentPage" on the
facing page
Returns an integer value representing the current
page where the current position is located, inside the
current record.
Text,
PDF
currentPageHeight The height of the current page in millimeters. PDF
currentPageWidth The width of the current page in millimeters. PDF
lines An integer value representing the number of lines in
the current record of data.
CSV,
TEXT
"moveTo()" on the
facing page
Moves the pointer in the source data file to another
position.
All
"moveToNext()" on
page458
Moves the position of the pointer in the source data
file to the next line, row or node. The behavior and
arguments are different for each emulation type: text,
PDF, tabular (CSV), or XML.
All
totalPages An integer value representing the total number of
pages inside the current record.
Text,
PDF
Example
if(steps.currentPage > curPage) {
steps.moveTo(0, steps.currentPosition+14); /* Moves the current
position to 14 lines below the current position of the pointer in
the data */
curPage++;
} else if(curLine.startsWith("LOAD FACTOR")) { /* Extracts data to
the curLine variable until the string "LOAD FACTOR" is encountered
*/
break;
} else {
lineArray.push(curLine); /* Adds the current line value
Page 455