2022.2

Table Of Contents
Example
Thefollowingscriptattemptstomatch((n,m))or((n))againstanyofthestringsinthespecified
regionandifitdoes,adocumentboundaryisset.
var myRegion = region.createRegion(170,25,210,35);
var regionStrings=boundaries.get(myRegion);
if (regionStrings) {
for (var i=0;i<regionStrings.length; i++) {
if (regionStrings[i].match(/(\({2}n,*m*\){2})/gi)){
boundaries.set();
}
}
}
(Thematch()functionexpectsaregularexpression;seew3schools.)
CSV or database: createRegion(columnName)
CreatesaregionfromthedatainaCSVfile,usingthespecifiedcolumnNameparameter.
columnName
Stringcontainingthenameofthecolumnwheretheregionistobecreated.
Example
Thisscriptchecksthefirstvalueinacertaincolumn.Ifitisnotthesamevalueasinthepreviousrecord
(s),adocumentboundaryisset.
var recordValue = boundaries.get(region.createRegion('ID'))[0];
if(!(recordValue==boundaries.getVariable('lastValue'))){
boundaries.setVariable('lastValue',recordValue);
boundaries.set(0);
}
range
Read-onlyobjectcontainingthephysicalcoordinatesoftheregion(see"region"onpage394).
l
Foratext file,therange()methodcontainsthephysicalcoordinatesoftheregion:x1(left),y1
(top),x2(right),y2(bottom),expressedincharacters.
l
ForaPDF file,therange()methodcontainsthephysicalcoordinatesoftheregion:x1(left),y1
(top),x2(right),y2(bottom),expressedinmillimeters.
l
ForaCSV file,therangecontainsthenameofthecolumnthatdefinestheregion.
sourceRecord
ReturnsasourceRecordobjectcontainingcustompropertiesspecifictothecurrentsourcerecord
beingprocessed.
Page 396