/// CONVERT
1 credit

Image to PDF API — photos to documents

HEIC, PNG, JPG — one API, one PDF out.

/// Quick answer

Image to PDF combines one or more images into a single PDF, in the order you supply them. Each image becomes a page, or several can be fitted per page. The two settings that determine whether the result looks right are page sizing — whether images are scaled to fit or the page adapts to the image — and orientation, which is frequently wrong because of EXIF rotation data.

Try Image to PDF API — free →Read the docs

Free account. No card required.

How does the Image to PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v1/tools/image-to-pdf \
  -H "X-API-Key: ash_live_..." \
  -F "files=@photo-1.jpg" \
  -F "files=@photo-2.jpg"

How do I use Image to PDF API in Make, Zapier or n8n?

MAKE

Add an HTTP "Make a request" module, POST the images, and turn off Parse response so the PDF binary arrives intact.

Make setup guide →
ZAPIER

Use Webhooks by Zapier with a POST action and map the returned file URL into a Drive upload or an email attachment.

Zapier setup guide →
n8n

Use the HTTP Request node with Response Format set to File.

n8n setup guide →
AIRTABLE

Trigger on a record with multiple image attachments, combine them, and write the PDF back to a separate attachment field.

Airtable setup guide →

Common problems and fixes

SymptomCauseFix
Photographs appear rotatedEXIF orientation data is being ignoredEnable EXIF-aware processing, or strip and apply the rotation before conversion. Phone photographs are stored in sensor orientation with a rotation flag, and ignoring that flag turns portrait shots sideways.
Images look stretchedAspect ratio not preserved when fitting to a fixed page sizeUse fit-to-page with aspect ratio preserved, or let the page size follow the image dimensions.
The PDF is very largeFull-resolution photographs embedded without compressionDownscale before conversion, or run compression afterwards. A twelve-megapixel photo per page produces an unusable file size quickly.
Images appear blurry in printSource resolution too low for the printed sizeUse images at 150 DPI minimum for the intended print dimensions, 300 DPI for anything detailed.
Pages come out in the wrong orderFilename sorting is alphabetical, not numericZero-pad your filenames — img-001 rather than img-1 — or supply an explicit ordering.
HEIC files are rejectedHEIC needs a specific decoderConvert to JPEG or PNG first if HEIC is not supported. Check the accepted formats before building around iPhone photographs.

Common use cases

Frequently asked questions

How do I combine multiple images into one PDF?+

Send the images to the endpoint in the order you want them. Each becomes a page, or several can be fitted per page depending on your layout option.

Which image formats are supported?+

JPEG, PNG and WebP are handled universally. HEIC — the iPhone default — requires a specific decoder, so verify support before building a workflow around phone photographs.

How do I stop images being rotated incorrectly?+

Enable EXIF-aware processing. Phone cameras store photographs in sensor orientation with a rotation flag, and ignoring that flag turns portrait images sideways.

Can I set the page size when converting images to PDF?+

Yes. Either fix the page size and scale images to fit, preserving aspect ratio, or let each page take the dimensions of its image. Fixed size suits printing; image-sized pages suit screen viewing.

How do I reduce the file size of an image PDF?+

Downscale the source images before conversion, or run PDF compression afterwards. Full-resolution photographs embedded directly produce very large files.

RELATED TOOLS