Extract table data from multiple pages of pdf

Down below is the selector whose ctrl idx value needs to be incremented till it exists. You can use a variable in place of 55 below which needs to be incremented till the selector exists

<wnd app='acrord32.exe' cls='AcrobatSDIWindow' title='Acrobat Document.pdf - Adobe Reader' />
<wnd cls='AVL_AVView' title='AVPageView' />
<ctrl idx='55' role='row' />

"<wnd app='acrord32.exe' cls='AcrobatSDIWindow' title='Acrobat Document.pdf - Adobe Reader' />
    <wnd cls='AVL_AVView' title='AVPageView' />
    <ctrl idx='" + CounterValue + "' role='row' />"