How to validate the account numbers in pdf file?

@naveen.s

Try this approach

  1. Use Get PDF Page Count activity to get page count.
  2. Use while loop to iterate all the pages.
  3. Under while use Read PDF Text to read the page number being iterated
  4. Use regex to get account number. You can ask any LLM for the regex pattern for it.
  5. Store the extracted account number in a list or array.
  6. 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.
  7. If the unique account numbers count is one then there is only one account number in the pdf else multiple.
1 Like