Read PDF text Aggregate Exception Error


#1

Hi ,

While reading the PDF text, i am trying to pass the page number in the input range as “2-3” via variables.

With direct numbers it works. But with variable reference it shows as AggregateException.

Regards,
Shakeer N


#2

Based on my knowledge PDF won’t take page rage…
Could you please show some more light.


#3

It Accepts range.

If i pass a direct string i.e “2-3” it works.

If i pass the same number via variable for Ex Pdftxt = “2-3”. it shows aggregate exception.


#4

oh ic… i got it what you mean to say… it will work perhaps the data might be null or empty. it is working fine with me.


#5

I have two variables image.

This way if i do i am getting the aggregate exception error


#6

Try this.
""+pagrfrom.ToString+"-"+pageto.ToString+""


#7

Thanks Man. It worked perfect.


#8

Hi ,

while I am trying to read text file I am getting Aggregate exception.

“E:\TravelersBot\documents”+patientNameInDocument.ToString.Trim+".txt"

with reference to variable I am unable to read it.
ex:patientNameInDocument=“tesing”

Kindly help

Thank you


#9

I faced the same issue, Removing the .txt extension of the file to be read from the local drive solved the issue for me.