I have list of pdf files in that pdf files there are some pages i want the particular page if it’s matches with value and save it as another pdf
I have list of pdf files in that pdf files there are some pages i want the particular page if it's matches with value and save it as another pdf
- Get PDF files from directory
- For each loop through each PDFs and use Read PDF Text to write the PDF text to a variable
- Identify if a string of text or formatting of text occurs in the PDF (I think this can be done via RegEx or other string functions)
- Identify which pages of the PDF match the text criteria
You can try it as below.
Assign int i=1
Inside your main for each of pdf files Use while activity and use condition i<= pdfPageCount.
Inside while use Read PDF Text activity and set page range to i.ToString.
Now add your condition to check your particular string in that page. (Check it in your pdf text output variable)
if page contains your string then add that particular page number to the pdfPageCount= pdfPageCount+i.ToString+“,”.(“,” is to separate each page number
At the end but inside while increment i=i+1
Do the same for each pdf inside your main PDF files for each loop.
If condition matches to the text in PDF use Export pdf activity…This is apt to resolve ur pblm