You can assign a tag to the desired images. All images sharing a tag can be merged into a single multi-paged PDF, sorted alphabetically by their public IDs.
For example, here's a PHP API call for generating a multi-paged PDF of all images sharing the "test" tag:
\Cloudinary\Uploader::multi('test', array("format" => "pdf"));
Comments
10 comments
Could you include watermarks with this.
Hi Zacharia,
You can indeed add watermarks to the PDF pages using something like (Rails):
Hi guys...
Is there a way to compress the PDF generated?
Because I try this with 8 images (JPG) of 200kb, and the result was a PDF of 11MB file size.
And I have to generated a PDF of 60 to 80 images, and this will generate a PDF of 100MB approx., and this is too much bog, I think.
Thanks in advance.
Hi
We currently don't have a way to compress the pdf file generated.
However, if you would open a request at support@cloudinary.com we would be glad to look into your use case more thoroughly and see how we can help.
I've set this up as suggested, but the PDF file this is returned is of low quality. Is there a way to preserve the quality of the individual files when they are combined in this manner?
Hi Erich,
Can you share some more details (the PDF that was created and the individual images) for us to further investigate?
If privacy is an issue here, please open a new support ticket (https://support.cloudinary.com/hc/en-us/requests/new) and share the info there:)
Hi,
Could you help out with converting pdf document to image arrays with page number as index and page content as images?
Thanks
Hi Peter,
We have the explode API which does exactly this: https://cloudinary.com/documentation/image_upload_api_reference#explode_method
Hi,
Is it possible to choose an order, possibly using a second tag?
Thanks
The Multi controlled by alphabetical order of public ids of pdfs - you can name them like 01-xxx, 02-xxx, etc
Please sign in to leave a comment.