I have pdf documents with more than 100 pages. Initially, I have Cover pages and at the end some unwanted pages, I want to use that in-between pages of pdf documents. Can you please help me how to get the usable pages separately from pdf document. suggest me the technical logics or step to follow up for complete the task efficiently.
Get the pdf page count using UiPath pdf activities. Then you can loop through the pages, read page, use regex or string manipulations to check if its a valid page, if the page is valid, split that page and save to a folder. Once iteration is completed, you will get the valid pages in a folder. Now read the folder (using directory.getfiles) and merge all the files using pdf activities.
This like is to append page numbers with comma separation …for the first time we should not add comma …so check if string is empty then append page number …else append a comma and page number
For example, let’s assume that the pdf documents have 100 pages, the last 30 pages are strike out.(total Strike out pages may vary for each documents) In these case, How to identify the strike out pages in the pdf documents and get the remaining pages from the documents for pdf automation? @Anil_G