I am looking for short code or a woocommerce solution to determine the page size and page count of a pdf document for upload. Customers can upload pdf files to my woocommerce website, and I would like to be able to determine the page size and page count of the document at the time of upload. To see a better example of what I am talking about here are 2 webistes that use what I am looking for:
https://thefoldline.com/product/copy-shop-printing-upload-any-pattern/
or
https://pdfplotting.com/product/pattern-printing-bnw/
Thanks for any help you can give me.