Want to split the pdf file basis on text name

Hi Team,

How to Split the pdf files basis only by unique text.

For eg:- I have 80 pages in one pdf. so, i want to split pdf on basis of unique text like below,

          A)(1st page TO 4th page) One pdf - 'Certification is valid' unique text is present on 1st page.
          B)(5th page TO 10th page) Second pdf - 'Certification is valid' unique text is present on 5th page.
          C)(11th page TO 20th page) Third pdf - 'Certification is valid' unique text is present on 11th page.

Thanks ,
Smitesh

HI @Smitesh_Aher1 ,
You can see

https://docs.uipath.com/activities/other/latest/document-understanding/extract-pdf-page-range
regards

str.split("Certification is valid"c,number of pdfs,stringsplitoptions.removeemptyentries)(1)

GIVES OUTPUT AS 1st PDF

Hi @vinitha_yachamaneni

Thanks for suggestion.

But, i didn’t get this. Where to assign this :- str.split("Certification is valid"c,number of pdfs,stringsplitoptions.removeemptyentries)(1)

Hi

Take the string Variable and write the Expression

str_Variable = str.split("Certification is valid"c,number of pdfs,stringsplitoptions.removeemptyentries)(1)

Hi,

I stored in one string variable but getting below error,

Argument not specified for parameter 'Number of ‘Public Function Str(Number As Object)As String’.

Hi @Smitesh_Aher1

Once try this

str_Variable = str.split(“Certification is valid”,number of pdfs,stringsplitoptions.removeemptyentries)(1)

Hi @Smitesh_Aher1
Please try this.
PDF.zip (1.8 KB)

Hi @vinitha_yachamaneni ,

Not showing error now.

but after store in the string variable then what to do?

Thanks @ramcharan863 for this solution.

But, my requirement is different.

can you please elaborate?

Inside the one pdf there are multiple pdf’s present. So, i want to split the inside pdf’s on the basis only by text not on basis of page no. because page number are not available on pages.

For Eg:-80 pages pdf split like below,

1st to 10th page = 1st pdf(Unique text present on 1st page)
11th to 25th page = 2nd pdf(Unique text present on 2nd page)
26th to 30th page = 3rd pdf(Unique text present on 3rd page)
31th to 50th page = 4th pdf(Unique text present on 4th page)

By this way i want to split pdf.