Reading the same PDF Multiple time

I am using read pdf with ocr to read multiple pdf of different name,and i have kept that read pdf ocr in the loop,But it is reading 2 to 3 different pdf and rest it is reading only one pdf again and again

hi @Priyesh_Shetty1 , can you paste the code snapshot here?

Hi Priyesh,

There might some mismatch in the loop you have created, please share a pic of your code, we will have a better picture.

Regards,
Vasanth Kumar

[Processing: 20230417_134403.jpg…]

Is this a right code to read multiple pdf?

Is this a right code…Because pdf are getting downloaded in the download folder.

And i have used directory.getfiles(“download folder path”)(0)

have you used it in a for each loop ? if so, please share the condition you have used

Uploading: 20230418_124413.jpg…
First i have used read csv because from csv file iam getting the input of the pdf file which i want to download
And then i have used pdf dt and changed the variable type to string array,i have stored the name of the pdf which i have to download from website of ns

I have used 2 for loop one to find the specific name and one is for each row in data table…and inside the if i have mentioned the condition that currentrow(“Column name of csv file”).to string.contains(currentitem)…it is downloading all pdf which i want from the website with the help of csv file,but it is repeating some pdf’s 2 times.

When you are using Directory.getfiles()(0), it is sorted on file name and maybe always you are getting the same file which is on top again and again. I would suggest use the activity “Wait for download” while downgliding the file, you will get the downloaded file name as output from this activity, use this filename variable for read pdf with ocr.