Documentation Index

Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt

Use this file to discover all available pages before exploring further.

Image & Video APIs

Create PDFs from images in Node.js (video tutorial)

Last updated: May-20-2026

Overview

Learn how to create PDF documents from multiple images using Cloudinary's Node.js SDK. This tutorial demonstrates how to organize images with tags and automatically generate PDFs from tagged image collections, perfect for creating photo albums, reports, or document compilations programmatically.

You'll discover how to upload images with custom tags, retrieve images by tag, and use Cloudinary's multi-image PDF generation feature to create professional documents from your image assets.

Video tutorial


This video is brought to you by Cloudinary's video player - embed your own!
Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

Introduction to PDF generation

Jump to this spot in the video  0:00 PDFs are a popular format for business documents and widely accepted file types. Cloudinary makes it easy to generate PDFs from images in your product environment.

Tagging images for PDF generation

Jump to this spot in the video  0:16 Learn how to tag images in your product environment so they can be grouped together for PDF generation. Tags serve as metadata that allows you to retrieve specific image collections programmatically.

Creating PDFs with the Node.js SDK

Jump to this spot in the video  0:47 Set up a Node.js script to generate PDFs from tagged images using the cloudinary.uploader.multi() Admin API method. Configure transformations including width, crop mode, and gravity settings for optimal PDF layout.

Configuring PDF transformations

Jump to this spot in the video  1:18 Apply transformations to ensure images fit properly in the PDF format, including setting width to 800px, using fill crop mode, and automatic gravity for optimal image positioning.

Security settings for PDF delivery

Jump to this spot in the video  2:08 By default, PDF and ZIP files are blocked for security. To enable PDF delivery, navigate to the Security page of the Console Settings and check Allow delivery of PDF and ZIP files.

Dynamic PDF generation with uploads

Jump to this spot in the video  2:36 Create a dynamic workflow that uploads multiple images with tags and immediately generates a PDF. Perfect for applications where users upload images that need to be compiled into documents.

Uploading and tagging images programmatically

Jump to this spot in the video  3:33 Use a loop to upload multiple images with consistent tags, then generate a PDF from the newly uploaded and tagged images using the same multi-image PDF generation technique.

Keep learning

Related topics

If you like this, you might also like...

 

Cloudinary Academy

 

Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.

 

✔️ Feedback sent!

Rate this page:

one star two stars three stars four stars five stars