Get single page from pdf(have multiple pages) and count the no of pages in pdf

I have a pdf file with 4 pages
I want to get pages count and how to select single page only

I have an array like
arrayvariable = {asduhguihs whvuhr wsvuhnui, ugiuhws wuigi wgui swuhgu, iuwhgui wugis iuhswfu, wiughu uashfu}

str = “whvuhr”

I want to get the index which one have the str ((wihtout loops is fine))

Hi

To get the pdf page count

And to select single page we can set the range in READ PDF property

And for the array index
int_index = Array.IndexOf(Arrayvariable, Arrayvariable.AsEnumerable().Where(Function(a) a.ToString.Contains(“whuvur”)).FirstOrDefault)

Cheers @Ajith1

1 Like

it shows this error @Palaniyappan

1 Like

WHo have a solution for this…

thanks

1 Like

any solution for this

2 Likes

So for the array index the expression be like this
int_index = Array.IndexOf(Arrayvariable, Arrayvariable.AsEnumerable().Where(Function(a) a.ToString.Contains(“whuvur”)).FirstOrDefault)

And for the first page of pdf alone we can mention that in Read pdf like “1”in range property

Cheers @Ajith1

Workflow to find the pdf page count is attached below,pdfPages.xaml (5.5 KB)
and using that count read the pdf pages one by one using read pdf text activity.

Happy Automation :smiley:

that’s is I want.

count read the pdf pages one by one using read pdf text activity. but how to pass it

1 Like

hmm…usually it starts from 1 right
so in PDF Range property mention as (pCount+1).ToString
Cheers @Ajith1

so is the issue resolved
do we have any other queries to be discussed, if so kindly let know
@Ajith1

Check this updated workflow @Ajith1,
pdfPages.xaml (10.7 KB)

Happy Automation :smiley: