BloodwebMicroservices Sign in
← All microservices

Images to PDF

PDF

Combine photos, scans or receipts into one PDF, one image per page, in the order sent.

What it does

  • Up to 20 images per PDF
  • A4, Letter, Legal or A5, or each page sized to its image
  • Landscape pages for landscape photos
  • Phone photos turned the right way up

Good for

  • Receipts for expense claims
  • Photographed documents
  • Portfolios

Send the images in the order you want the pages. Transparent images get a white background.

Example

POST https://bloodweb.net/api/v1/images-to-pdf

curl -H "Authorization: Bearer YOUR_KEY" -F "files[]=@receipt1.jpg" -F "files[]=@receipt2.jpg" https://bloodweb.net/api/v1/images-to-pdf -o receipts.pdf

Options

NameDescription
files
file
1 to 20 images, up to 25MB each (send as files[]): jpg, png, gif, webp, bmp, tiff, heic, avif, ico.
page Paper size, or fit to make each page the size of its image.
One of: A4, Letter, Legal, A5, fit
Default: A4
margin Margin in millimetres (ignored for fit).
Default: 10
quality JPEG quality of the images inside the PDF.
Default: 85

Returns

A PDF. Pages turn landscape for landscape images.