Hi, Guys, has anyone else noticed a problem with the pdf automation activities. For example, the find the element and Get text activities on PDFs works. The first time you indicate the element. But after you close the PDF and open the same PDF again. It cannot find the elements and fails at the validation of the selector. Is there any fix for this problem?
Hope you are doing well.
Can you share some screen shots and explain it?
I can share my workflow and my pdf files. Would that be easier? Basically I am trying to scrape invoice details from the sample invoice. It works prefectly fine once you first incidate the element and output the desired result. But after you close the project and re-open eveything the same. it does not work. Not sure why.
ReadAndExtractPDFData.zip (28.0 KB)
In your workflow, you can change the filename in following activities Find element and Get full text to dynamic selectors.
You can try to validate post changing the selector and run the BOT again. It should work !
eg.Invoice1.pdf to Invoice*.pdf in below selector,
Version:0.9 StartHTML:00000097 EndHTML:00001772 StartFragment:00000199 EndFragment:00001734 <wnd app='acrord32.exe' cls='AcrobatSDIWindow' title='Invoice*.pdf - Adobe Acrobat Reader DC' /> <wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /> <wnd cls='AVL_AVView' title='AVPageView' /> <ctrl idx='7' role='row' /> <ctrl name='INVOICE NUMBER ' role='text' />
I tried that already. It does not work. When you try to validate it. It still fails. It only seems to work when you point it at the element again, the indicate element button. But once you close everything and then open everything back up. It does not work.
Also sorry I will explain one part again. The dynamic selector works which I tried before commeting on the forms. But it only works when you incidate the element on the pdf the first time. After everything is closed and you reopen it, it does not work.