Convert PDF to JPG
Convert PDF to JPG
Media acceleration
Beginner

Convert your PDF files to a JPG thumbnail by simply switching the extension of the file to JPG. You can also specify the target thumbnail dimensions using the width and height parameters and any available crop mode. If your PDF file has multiple pages, you can specify the specific page to convert using the page parameter (pg in URLs). For example: Multi-page

Web applications that manage user data, often allow their users to upload PDF documents. In many cases, you'll want to show a thumbnail of the PDF's cover page for quick identification. You may also want to show thumbnails of the different PDF pages for fast access.

With Cloudinary, you can convert your PDFs (including multi-paged PDFs) to JPGs, PNGs and other image formats.

For example, here's an original PDF file: Original

Convert this PDF to a JPG by changing the URL's extension from PDF to JPG: Original

Or you can set the format parameter:


cloudinary.image("single_page_pdf", { format: 'png' })

To generate thumbnails from your PDF file, you can simply use Cloudinary’s resize and crop transformations, as you would for regular images. Here's an example of a PDF image converted to a 200x250 pixels PNG: PDF thumbnail

Cloudinary's transformations and image manipulations can also be applied on the generated thumbnails. For example: Here's the same thumbnail, while adding a sepia effect, adding a border, and include both a text overlay and a watermark: With overlays

You can also generate an image of a specific page from a multi-page PDF.
This can be done by specifying the page parameter (pg in URLs): Multi-page

Click here for more information about PDF manipulation and delivery by Cloudinary.

NOTE: PDFs must be uploaded as an image resource_type.