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 a specific resource. For example, in Rails:
Cloudinary::Api.resource("my_pdf_file", :pages => true)
Comments
4 comments
I'm having trouble implementing this. I am replacing "my_pdf_file" with my cloudinary link to my pdf that is already uploaded but I get an error that says
Cloudinary::Api::NotFound at /
Resource not found -
Any help would be appreciated. Thanks
Hi Guillermo,
Can you please open a ticket at support@cloudinary.com with more information on your implementation and your cloud name?
Hi,
i have the same problem. Is there any solution yet?
regards
Hmm ok. The public id is needed. Makes sense^^
Please sign in to leave a comment.