Split PDF on string matching

Hi @indrajit.shah ,

Using the Highlighted Activities below from the PDF Activities Package, we should be able to achieve your requirement.

  1. Use Get PDF Page Count Activity.
  • Retrieve the Page Count of the PDF Pages, Store the output in a integer variable say pageCount
  1. Using a For Each Activity we can Loop through Each Page of PDF and Extract it’s contents.
  • Using a Read PDF Text Activity, extract the text data.
  • Using an If Activity, Check if the Page data contains matching string.
  • If it does , save the Page No. to another variable, PageNo, Break out of the Loop.
  • If it does not, update page no. as -1
  1. Next, Out of the For Loop, Use an If Activity and Check Page No is not Equal to -1. And then Extract the Pages of the PDF using Extract PDF Page Range Activity

This should provide you with the PDF file upto the Matching String value.

Let us know if you are facing any difficulties.