Does anyone know how to get pdf file names from a textfile and then pass it as a variable? Means under Read PDF text, instead of the file I chose, I can read from the text file the list of pdf file name and pass it as a variable
Welcome to the community!
Can you share more details like putting even the screenshots of your textfile to see the format.
The above text file is the list of pdf file names I want to pass in as a variable inside read pdf text
I would want to pass the list of filenames pdf into read pdf text, how should I do it
I’ve attached the screenshots below
Welcome to the community
Do the following steps:
- Read the text file
- After that perform a regex function on the read text " ^(.*.pdf)$ "
- Perform the for loop on the extracted text
- Read PDF in the loop.
Hope this helps
Let me know in case of issue.
For the read pdf text, do I input in the extracted text?
The extracted text will be coming in an array, so while you do the for loop you will need to simply put the object name running of the for loop
I have one doubt here. Here, you just specified file names only with any file path.
If you know that file path then you have to pass it along with the file name getting from text file. To read the file names from text file follow the steps mentioned by @Shubham_Varshney
In Read PDF text activity, you have to pass like this.
Here, varPDFName refers to the file names in text file.
ReadPdfFiles.xaml (6.1 KB)
Check the attached xaml, it has the functionality as you are expecting.
You would Read Text File, then split the content string by end of line using string operations, then you would Read PDF Text in a for each with each of the split values.
Is this what you are looking for?
yup something like that