2022.2

Table Of Contents
ThisfunctioncanbeusedtoextractdatafromCSVorXLS(X)filesthathaveanidenticalstructurebut
don'thavethesamecolumnnames.
index
NumberthatrepresentsacolumninaCSVorXLS(X)file(1-based).
rowOffset
Optional.Numberthatrepresentstherowindex(zero-based),relativetothecurrentposition.Toextract
thecurrentrow,specify0astherowOffset.UsemoveTo()tomovethepointerinthesourcedatafile
(see"moveTo()"onpage398).Whenomitted,thecurrentrowwillbeextracted.
Examples
Thescriptcommanddata.extractByIndex(1,0);meansthattheextractionismadeonthefirst
columninthefirstrow,relativetothecurrentposition.
Thefollowingscriptputsthevaluesofallcolumnsofthecurrentrowintoonearray.Thevaluescould
thenbestoredasaJSONarrayinasingleextractedfield.
var allFields=[];
var i=1;
while (data.fieldExistsByIndex(i)) {
allFields.push(data.extractByIndex(i++));
}
extractMeta()
MethodthatextractsthevalueofametadatafieldonacertainlevelinaPDF/VT.Thismethodalways
returnaString.
extractMeta(levelName String, propertyName String)
levelName
String,specifyingalevelinthePDF/VTorAFP.Casesensitive.
propertyName
String,specifyingthemetadatafield.
fieldExists()
Methodofthedataobjectthatreturnstrueifacertainmetadatafield,columnornodeexists.(See
"data"onpage374.)
fieldExists(levelName, propertyName)
ThismethodreturnstrueifthegivenmetadatafieldexistsatthegivenlevelinaPDF/VTorAFPfile.
levelName
Page 384