in my robot I want to open a PDF document and get the text of it and copy it so that I can paste it somewhere else. The problem is that I don’t know how to get it. When I try to indicate on the screen it selects the whole document and not the specific text, even if I change the reading options. I know that the “Read PDF text” activity exists but I only need one word and copy/paste it. I can’t share a screenshot from the actual PDF-file because of privacy but it’s kind of like the screenshot I post here (the circle marks the text I want to extract). Do you have any ideas?
Hi @NIVED_NAMBIAR … The reason why I didn’t suggested DU is ,user req is to extract one single element from the pdf and DU is very heavy for this…You agree??
@prasath17
That’s how it is. I don’t manage to output it into a text file unfortunately.
I thought of using the Create File activity but it doesn’t allow an input.
Sorry for asking so many questions, but I am new to these activities
Okay nevermind I gave the Read PDF Text an Output and used in the Write Text File activity.
The question is how I can extract a specific word from the .txt file
@prasath17
It has data which I would not be allowed to share so I have to mask something but it should be fine I guess. I need the text which is blue highlighted:
@prasath17
Yes it does! I displayed a message box and it is showing the ID.
Will it work if the PDF file changes a little bit? The PDF is generated once a day and some data changes
@RandomGuy - As long as the “Org-ID AG” text remain same, because that is the base to extract the real value…so it should work…watch closely and let me know.
if it changes, we have to identify the variations and try to write the pattern which satisfies all the variation…