How to process multiple pdf pages one after other?

Hi Guys,

I have a pdf file and it has 5 pages. Now I have to extract different values from each page. So how can I read and process each pdf page one after other? I don’t want to read all pdf pages in one shot. I have to read and process it one after other?

Thanks!!

Hi @mohamedalthaf

1.Use Get PDF Page count to get the No.Of Pages.
2.Take a counter Var Init_Count=1
3.While init_Count<=Page
4.Pass the Counter var init_Count in the Range Property of Read PDF


1 Like

Hi @mohamedalthaf

Use Get PDF Page Count and save the output in a variable say pageCount

=> Initialize counter = 1

=> Use below condition in While

While
  counter <= pageCount
   -> Read PDF Text
        \\In Range pass `counter.ToString`
       Output -> str_Text
    \\ Do necessary process
 Assign -> counter = counter + 1
End While

Hope it helps!!

1 Like

@mohamedalthaf

Extract Pdf Page Range:
FileName:“C:\Users\rlgandu\Downloads\China Broadband Communications (Hong Kong) Co. Limited WITH BAN == CBCDIA0023(USOPS).pdf”
Output File Name:“C:\Users\rlgandu\Downloads\China Broadband Communications (Hong Kong) Co. Limited WITH BAN == CBCDIA0023(USOPS)”+Counter.ToString+“.pdf”

In Read Pdf Text Pass OutPut File Name:
“C:\Users\rlgandu\Downloads\China Broadband Communications (Hong Kong) Co. Limited WITH BAN == CBCDIA0023(USOPS)”+Counter.ToString+“.pdf”

Note:FileName and OutPut filenames are different and the difference i take Counter it will increment after every one page

1 Like

Thank you @pravallikapaluri @rlgandu @Parvathy. Got the solution

@mohamedalthaf
You’re Welcome
Happy Automation

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