You can create PDFs from images automatically with our API. It allows you to automate the conversion of JPG and PNG to PDFs. Read on to discover why you should use our PDF from the Images API.

PDF from Images API Benefits

Secure API Method

Security is now a major concern, for most people and businesses that handle electronic private data. Fortunately, with our API, your data is safe and secure, thanks to the use of SSL/TLS technologies to secure your files.

When you upload or download from our servers, the connection is encrypted with SSL/TLS. That makes it pointless for malicious third parties to intercept your files; if they did, they will find the information jumbled up.

Sign Up


Unlike buying expensive software licenses, using our credit system means you only pay for what you use. Furthermore, the more credits you buy, the less you pay, which makes a lot of business sense to use our service for the bulk image to PDF conversions.

How to Run JPG to PDF and PNG to PDF Asynchronously

When converting large image files to PDF using our API, it may time out after 25 seconds. That can also happen if the resulting PDF exceeds 100 pages. When that happens, the API may return a timeout error.

In that regard, we recommend that you run the process in the background, by enabling the “async” mode. That will force the API method to run in the background, and give a “success” status once the PDF is ready.

How to Upload the Files and Call the PDF from Images API

Step 1: Request a Temporary Upload URL

To use our API, you need to upload your file to our server, using a temporary URL. You can request one using “/file/upload/get-presigned-url”, which will return “presignedUrl” for uploading, and “URL” for accessing to the uploaded file.

Step 2: Upload Image File/s

Use “PUT” to upload your image/s to “presignedUrl”, which you got from Step 1.

Step 3: Call API

Next, use the “URL” param from Step 1 as the input, to call the PDF from the Images API method. Furthermore, to make sure you do not get a timeout error, set “async” param to “true”. The API will return an output URL/s, and their corresponding “jobId”.

Step 4: Check Job Status

Because the job is running in the background, you must use the “/job/check” API method along with the “jobId” param to check its status. That will give you a success status, once the job is ready so that you can download it.

Step 5: Download Files

Once the job is complete, the “/job/check” will return a “success” status, and you can download the processed file from the URL/s, the API output in Step 3.


That is how you upload and convert a PDF from Images using our API method. If you need to encrypt the PDF, you may choose to add the “encrypt” param, when calling the API. We hope you will enjoy using this API, and increase your productivity.

Sign Up

Related Samples: