Argument 'PdfFile': BC30512: Option Strict On disallows implicit conversions from 'FileInfo' to 'IResource'. The selected value is incompatible with the property type

Hello,

I am trying to extract the content from multiple PDF’s present in the folder using the Adobe Acrobat package. I am facing an error… Argument ‘PdfFile’: BC30512: Option Strict On disallows implicit conversions from ‘FileInfo’ to ‘IResource’. The selected value is incompatible with the property type.

Regards
Pranav Sundar

Hi @Pranav_Sundar

Give currentText.toString in the Extract PDF Text activity.

If above not works try below one,

LocalResource.FromPath(currentText.ToString)

Hope it helps!!

1 Like

@Pranav_Sundar
Pass the path like this

LocalResource.FromPath(currentText.Tostring)

Thanks. It worked

Regards
Pranav Sundar

1 Like

It’s my pleasure… @Pranav_Sundar

Happy Automation!!

1 Like

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