Hello UiPath Support,
I have a scenario where I have several hundred PDFs of varying total page count. I need only read the first page, second to last page and last page. I am attempting to use the Read PDF Text activity and getting error with Range parameter.
varLastPage is a string variable and is output from Get PDF Page Count activity (converted Int32 to string)
varSecondToLastPage is a string variable and is calculated from varLastPage - 1
I am attempting to provide the following into Range Parameter - “1,varLastPage,varSecondToLastPage” however I run into format error.
QUESTION: How are string variables to be passed into the Range Parameter of Read PDF Text Activity?
let’s have a pdf with 10 pages we would assume following Range string:
“1,2-9,10” which we can construct with following
String.Format(“{0},{1},{2}”, var1, var2, var3)
however the result would be the same as reading all pages with the “All” range string