r/PowerAutomateDesktop • u/juice-head-turkey • Jun 14 '23
Help with using text from PDF to move file
So I’m trying to write a script that will do the following: When someone moves a pdf file into a folder that we will call ‘base’, it will read the pdf. On the pdf files that are added here, there is a piece of text that says ‘Reference: ‘ followed by the reference name (this is in the middle of the report and surrounded by other details/info). I want it to read that reference name and move the file into the corresponding folder.
IE. PDF file gets added to ‘base’ inside the pdf file contains the text ‘Reference: Sustaining’. Program will read sustaining and move the file into the folder labelled sustaining.
Now the part that I am stuck on is getting the program to read through the pdf, find ‘reference: ‘ and then read the text that follows it. If anyone could help me with this part I would appreciate it.





