Nutrient

SDK

Cloud

Low-Code

Workflow

PNG to PDF API

Convert PNG images into clean, professional PDFs with a single API call.

Supports a wide range of formats

Easily convert images — including raster and vector formats — into PDFs for archiving, sharing, or further processing.

Automate with Zapier

Convert images in Google Drive to PDF automatically using our Zapier integration. A no-code solution for seamless document creation from image files.

Simple and transparent pricing

Select a package that suits your needs according to the number of credits you wish to spend. Each API tool and action has a specific credit cost.

Nutrient is used by

Try it out

This example will convert your uploaded PNG file to a PDF.

1

Use Your Free API Calls

Sign up and receive 100 credits for free, or log in to automatically add your API key to sample code. If you are not sure how credits are consumed read more in our pricing documentation , or check out this guide on calculating credit usage.

2

Add a File

Add a PNG file named input.png to your project folder. You can also use our sample file. The file name is case sensitive. Make sure the file name matches the file name in the sample code.

3

Run the Code

Copy the code and run it from the same folder you added the files to. For more information, see our language-specific getting started guides.

4

View the Results

Open result.pdf in your project folder to view the results.

curl -X POST https://api.nutrient.io/build \
  -H "Authorization: Bearer your_api_key_here" \
  -o result.pdf \
  --fail \
  -F file=@input.png \
  -F instructions='{
      "parts": [
        {
          "file": "file"
        }
      ]
    }'
Using Postman? Download our official collection and start using the API with a single click. Read more 

Your API key

Getting Started

The following section will walk you through how to best make use of all the functionality our Image to PDF API provides.

Converting a Single Image to PDF

Let’s start with the basics. The Image to PDF API allows you to convert any supported image file to a PDF.

The easiest way to use this is to convert a single image to a PDF. Place a page1.png file in the same folder as your code. You can use any image or use our provided sample page.

Run the code, and you’ll get a result.pdf with your image converted to a PDF.

Code to convert an image to PDF:

curl -X POST https://api.nutrient.io/build \
  -H "Authorization: Bearer your_api_key_here" \
  -o result.pdf \
  --fail \
  -F page1.png=@/path/to/page1.png \
  -F instructions='{
      "parts": [
        {
          "file": "page1.png"
        }
      ]
    }'

Combining Multiple Images into a PDF

While converting a single image to a PDF is quite useful, often you’ll have a folder of images — for example, of a scanned document — that you want to combine into a single PDF.

Pass in multiple images — one for each page in your request — and Nutrient DWS API will merge all of 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 you can add some other images.

Code to convert multiple images to PDF:

curl -X POST https://api.nutrient.io/build \
  -H "Authorization: Bearer your_api_key_here" \
  -o result.pdf \
  --fail \
  -F page1.png=@/path/to/page1.png \
  -F page2.png=@/path/to/page2.png \
  -F page3.png=@/path/to/page3.png \
  -F page4.png=@/path/to/page4.png \
  -F instructions='{
      "parts": [
        {
          "file": "page1.png"
        },
        {
          "file": "page2.png"
        },
        {
          "file": "page3.png"
        },
        {
          "file": "page4.png"
        }
      ]
    }'

Security is our top priority

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.

Ready to try it?

Create an account to get your API key and start making API calls.