Cloudinary supports returning the number of pages in a multi-paged PDF.
As part of the upload response, Cloudinary also returns the
pages parameter, indicating the number of pages within the PDF.
For already uploaded images, use the Admin API to retrieve the
pages information. For example, in Rails:
Cloudinary::Api.resource("my_pdf_file", :pages => true)