pdfedge
API reference › Pdfs

Make a PDF from images (PNG or JPEG), one page each, on a paper size or at each image's own size

POST/v1/pdfs

POST/v1/pdfs

Make a PDF from images (PNG or JPEG), one page each, on a paper size or at each image's own size

Phone photos come out the right way up: the JPEG's EXIF orientation is drawn in. fit contain (default) shows the whole image, cover fills the page, stretch ignores proportions. Send the images as multipart (-F file=@1.jpg -F file=@2.jpg) to skip uploading.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "images": [
    "fil_8kq2wzm4tnb7hdc3vrex",
    "https://example.com/receipt-2.jpg"
  ],
  "size": "A4",
  "margin": 24
}
In the full reference
REQUEST
curl -X POST "https://api.pdfedge.com/v1/pdfs" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "images": [
    "fil_8kq2wzm4tnb7hdc3vrex",
    "https://example.com/receipt-2.jpg"
  ],
  "size": "A4",
  "margin": 24
}'
RESPONSE
200With response=binary: the file itself, with X-File-Id and X-File-Url headers
201Created
{
  "id": "fil_8kq2wzm4tnb7hdc3vrex",
  "object": "file",
  "kind": "result",
  "operation": "create",
  "name": "images.pdf",
  "format": "pdf",
  "content_type": "application/pdf",
  "pages": 2,
  "bytes": 284113,
  "url": "https://files.pdfedge.com/f/fil_8kq2wzm4tnb7hdc3vrex.pdf",
  "keep": "1d",
  "created": "2026-10-11T18:10:40Z",
  "expires": "2026-10-12T18:10:40Z",
  "units": 1
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.