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

https://res.cloudinary.com/demo/image/upload/w_200,h_250,c_fill,pg_2/multi_page_pdf.jpg

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

https://res.cloudinary.com/demo/image/upload/single_page_pdf.jpg

Or you can set the format parameter:


cl_image_tag("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

https://res.cloudinary.com/demo/image/upload/w_200,h_250,c_fill/single_page_pdf.png

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

https://res.cloudinary.com/demo/image/upload/w_200,h_250,c_fill,e_sepia,bo_1px_solid_black/l_text:arial_55_bold:Sample,a_40,o_50/l_cloudinary_icon,w_50,g_south,y_20/single_page_pdf.png

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

https://res.cloudinary.com/demo/image/upload/w_200,h_250,c_fill,pg_2/multi_page_pdf.jpg

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

NOTE: PDFs must be uploaded as an image resource_type.