Please add a new activity that accepts a path to a PDF file and returns the number of pages that the PDF has. There have been a few different packages that have had this, but they appear to not be maintained any longer. This is something that’s very basic for PDFs, so it’s something that should probably be included in the main packages without asking people to go outside of standard UiPath packages to get.
Continuing the discussion from Extracting pdf page count without using regex:
EDIT: While we wait for an official activity, here's a reusable component for anyone that just wants something to drag and drop. Give it a PDF file path, get back a number: [PDF_GetPageCount.xaml|attachment](upload://svdnVZHwzipZYnrhJdBlaeyWUmZ.xaml) (8.3 KB)