2021.1

Table Of Contents
Example
The following line of code moves the current position in a text file 14 lines down from the
current vertical position (steps.currentPosition) of the pointer in the data, as long as it is on the
same page.
if(steps.currentPage > curPage) {
steps.moveTo(0, steps.currentPosition+14);
curPage++;
}
moveTo(scope, verticalOffset)
Moves the current position in a PDF file to verticalOffset where the meaning of verticalOffset
changes according to the value specified for scope.
scope
Number that may be set to:
l 0 orsteps.MOVEMEASURE
l 1 orsteps.MOVEPAGE
verticalOffset
Double. What it represents depends on the value specified for scope.
With the scope set to 0 or steps.MOVEMEASURE, verticalOffset represents the number of
millimeters to move the current position, relative to the top of the record (NOT the top of the
current page).
With the scope set to 1 or steps.MOVEPAGES, verticalOffsetrepresents the index of the target
page, relative to the top of the record.
moveTo(xPath)
Moves the current position in a XML file to the first instance of the given node, relative to the top
of the record.
xPath
String that defines a node in the XML file.
Page 424