2020.2

Table Of Contents
match occurs on an odd page. Recall that for PDF files, the natural delimiter is a PDF page.
The JavaScript code would look something like the following:
var myRegion = region.createRegion(150,220,200,240);
if(boundaries.find("TOTAL", myRegion).found) {
/* a match was found. Check if we are on an odd or even page and
set the Boundary accordingly */
if((boundaries.currentDelim % 2) !=0 ) {
/* Total is on odd page, let's set the document Boundary one
delimiter further, thereby skipping the next blank page */
boundaries.set(1);
} else {
/* Total is on an even page, set the document Boundary to the
current delimiter */
boundaries.set();
}
}
}
setVariable()
This method sets a variable in the boundaries to the specified value, automatically creating the
variable if it doesn't exist yet.
Note
Boundary variables are carried over from one iteration of the Boundaries script to the
next, while native JavaScript variables are not.
setVariable(varName, varValue)
Sets variable varName to value varValue.
varName
String name of the variable of which the value is to be set.
varValue
Object; value to which the variable has to be set.
Page 389