I need to delete the last page from each PDF in a folder before the PDFs are digitized and data is extracted. The PDFs vary in length so sometimes it’s page 2 of 2 that needs to be deleted, sometimes page 3 of 3 or page 4 of 4, etc.
I installed the UiPath.PDF.Activities package but there is no Delete Page activity.
you may use the combination of two PDF activities:
- Get PDF Page Count: Extract the count of pages per PDF
- Extract PDF Page Range: Extracts the amount of pages that you select
So what you have to do is the following:
- Get PDF Rage Count - save an int Variable
- Extract PDF Range - use that variable, decrement it by and convert it to a string (this is what the Extract PDF Range activity expects (i_pageCount - 1).ToString
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.