Pdf page count errors

I am trying to read the pages in from every pdf files in a folder.
But I am getting this error. Any help?

Source: Assign

Message: Could not find file ‘C:\Users\17345\Documents\UiPath\pdfpages\item’.

Exception Type: System.IO.FileNotFoundException



Here file extension is missing and because of that you are getting this error.

  1. Try below expression to get all pdf files from particular folder.
 arrPDFFiles = Directory.GetFiles("FolderPath","*.pdf") 
  1. And then use For Each loop to iterate one by one file.
       ForEach item in arrPDFFiles
            Pass item and perform your actions

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.