I am working on a project and I the system allows a user to upload either a PDF file or a .docx file. What I want is that when a file is uploaded, the system should be able to count and display the number of pages the uploaded file has. It a webform application.
What I have tried:
Don't have any idea on how the code looks like.