Try this approach
- Use
Get PDF Page Countactivity to get page count. - Use while loop to iterate all the pages.
- Under while use
Read PDF Textto read the page number being iterated - Use regex to get account number. You can ask any LLM for the regex pattern for it.
- Store the extracted account number in a list or array.
- Once account numbers extracted from all pages, outside of the while loop use logic to get unique account numbers from the list or array we used.
- If the unique account numbers count is one then there is only one account number in the pdf else multiple.