PDF page number activity - Ideas

What is the use case
To get the pdf total page number including those with password protected pdf file

How do you see a solution for the use case?
Create an activity to retrieve the page number of pdf file even those password protected ones

Scope: ______________
Custom Activity