Want to upload a simple Manga (encrypted or pdf with images and colors) pdf to cloudinary
Want to upload a simple Manga (encrypted or pdf with images and colors) pdf to cloudinary but encouters this error :
{ message: 'Invalid PDF file', http_code: 400 }
what to do?
-
Hi there,
Thanks for reaching out and sorry for the delay in our answer as we discovered an issue preventing us to be alerted.
When uploading encrypted or password-protected PDFs you would need to upload them specifically with the resource_type set to raw. By default, when uploading PDFs they will be assigned the resource_type image as they can be manipulated using the same transformation as images. However, due to the password or encryption, Cloudinary cannot open and modify the file, and uploading it as raw will allow you to upload and deliver these PDFs, but you won't be able to manipulate password-protected PDFs.
Hope that helps.
Best,
Loic
0
Post is closed for comments.
Comments
1 comment