a month ago
Hello together,
currently i am more than confused. I managed to open a PDF and to Spy certain elements in that File because i cant just copy and read the clipboard in this case. After i run the process a second time, suddenly the element is not found anymore:
I just have one Process running so i dont think that is the reason
Also suddenly the Applicationmanager cant find the certain Fields in the File, it just can spy the whole file.
After i click manually in certain fields in the file, the Applicationmanager is able again to find the fields. Focus, Attach and Activate doesnt solve the Problem.
I Really dont want to Global Mouseclick and try to find the Fields in the PDF with X Y coordinates, so the spying process is working again. is there a better soloution?
a month ago
I found some kind of soloution. I Tab to the Element and try it 5 times with 5 sec delay. That works but feels very odd
a month ago
@NiklasFranke I know this isn't what you're asking about, but I feel I must suggest it. Have you attempted to look into non-UI ways to interact with PDF files? It certainly depends on what you're trying to do with it, but there are several libraries that can be used to manipulate PDF files or to extract text from them and stuff like that.
a month ago
I agree with Dave. This won’t be a stable solution in the long term.
Here are some suggestions for your issue:
1) Use the Activate application after attaching and before the read stage.
2) Focus on or highlight the element before performing the read action. Since you're running in debug mode, the element may not be in focus.
3) A better option might be to read the entire screen after opening the PDF and perform text operations downstream. This has worked well for me in some use cases.
4) Run it in step-out mode instead of stepping through each stage to avoid focus and highlight issues
a month ago
Just to add in my 2 pence worth, have you looked at opening the pdf in word? it should work for most pdfs and should give you more flexibility in extracting the data.
4 weeks ago
I believe this only works if the PDF is digital and the text is selectable. Since the PDF clipboard solution isn't working, i think that MS Word will capture it as an image rather than as text.
@NiklasFranke can you try and let us know how it goes for you using MS word