I have tried to search the Use File activity for using the Get PDF count activity, but this activity is not displaying in UiPath 2026 version. I have unchecked the preview activity as well. why?
Please find the SS below:
I have tried to search the Use File activity for using the Get PDF count activity, but this activity is not displaying in UiPath 2026 version. I have unchecked the preview activity as well. why?
Please find the SS below:
There is no use file activity at all
can you please tell what you need. We can help you with activity name
do you need number of pdfs in a folder if yes you can use directory.GetFiles("Folderpath","*.pdf").Count in assign activity it would give the count
cheers
Actually Iām using Get PDF page count activity but it should be used within a Use File container in modern UiPath exp.
Actually, it was giving an error as below:
Argument āPdfFileā: BC30512: Option Strict On disallows implicit conversions from āStringā to āIResourceā. The selected value is incompatible with the property type.
In Modern UiPath (including 2026), Get PDF Page Count does not accept a file path (String).It requires an IResource, which is created
You can alternate use Invoke code activity
Hope it helps
Thanks
The problem here is the Use file activity is not displaying in the activities panel.. Why?
Please confirm is PDF has selector text if yes then please Read PDf Text activity
pageCount = pdfText.Split(ChrW(12)).Length
Cheers
I believe he is using document understanding package activity . @vignesh_S.M can you check ?
Try this
Imports iText.Kernel.Pdf
Using reader As New PdfReader(pdfPath)
Using pdfDoc As New PdfDocument(reader)
pageCount = pdfDoc.GetNumberOfPages()
End Using
End Using
Make sure to make argument as In for Pdfpath and out direction for page count
Hope it work now
It worked for me.. when I use the Get PDF page count activity from PDF activities this issue got fixed. The problem here is I have used the Get PDF Count activity from DU..
Hi @vignesh_S.M ,
You are using DU activities, thatās why it is throwing error. Use UiPath.Pdf.Activities package and then use the āGet PDF Page Countā and save the result in the a variable and use it wherever you want.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.