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?
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
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
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