---
title: "Image-to-PDF API"
canonical_url: "https://www.nutrient.io/guides/dws-processor/tools-and-api/image-to-pdf-api/"
md_url: "https://www.nutrient.io/guides/dws-processor/tools-and-api/image-to-pdf-api.md"
last_updated: "2026-05-27T15:15:53.462Z"
description: "Convert JPG, PNG, GIF, TIFF, and other image formats to PDF using Nutrient’s image-to-PDF API. The API supports single and multiple image conversions."
---

# Image-to-PDF API

The image-to-PDF API enables you to convert supported image formats (JPG, PNG, GIF, TIFF, and more) to PDF documents. For an overview of the image-to-PDF API with signup, pricing, and code examples, see the [image-to-PDF API task page](https://www.nutrient.io/api/image-to-pdf-api/).

## Converting a single image to PDF

Convert a single image to a PDF by placing a `page1.jpg` file in the same folder as your code. You can use any image or use our provided [sample page](https://www.nutrient.io/api/assets/downloads/samples/image/page1.jpg/).

Run the code to generate a `result.pdf` file with your image converted to PDF:

### Shell

### Shell (Windows)

### Java

### C#

### JavaScript

### Python

### PHP

### HTTP

## Combining multiple images into a PDF

To combine multiple images (for example, from a scanned document) into a single PDF, pass multiple images in your request — one for each page. Nutrient DWS API merges them into a single PDF.

Add more files in the same folder as your code and run the updated code. You can duplicate and rename your existing file, or add other images:

### Shell

### Shell (Windows)

### Java

### C#

### JavaScript

### Python

### PHP

### HTTP
---

## Related pages

- [Tools and APIs](/guides/dws-processor/tools-and-api.md)
- [Document-to-image API](/guides/dws-processor/tools-and-api/document-to-image-api.md)
- [DOCX templating API](/guides/dws-processor/tools-and-api/docx-templating-api.md)
- [Markdown-to-PDF API](/guides/dws-processor/tools-and-api/markdown-to-pdf-api.md)
- [Office-to-PDF API](/guides/dws-processor/tools-and-api/office-to-pdf-api.md)
- [PDF security API](/guides/dws-processor/tools-and-api/pdf-security-api.md)
- [PDF-to-PDF/A API](/guides/dws-processor/tools-and-api/pdf-to-pdfa-api.md)
- [PDF generator API](/guides/dws-processor/tools-and-api/pdf-generator-api.md)
- [PDF watermark API](/guides/dws-processor/tools-and-api/pdf-watermark-api.md)
- [PDF OCR API](/guides/dws-processor/tools-and-api/pdf-ocr-api.md)
- [PDF-to-image API](/guides/dws-processor/tools-and-api/pdf-to-image-api.md)
- [PDF/UA auto-tagging API](/guides/dws-processor/tools-and-api/pdfua-api.md)
- [Redaction API](/guides/dws-processor/tools-and-api/redaction-api.md)

