Combine one or more images (JPEG/PNG/WebP…) into a single PDF – auto page size or fitted to A4/Letter. EXIF rotation applied.
| Name | Type | Description |
|---|---|---|
file | file · required | Image files in order (field "file", repeatable, max 200). |
pageSize | string · optional | auto (default), a4 or letter. |
margin | number · optional | Margin in mm for fixed formats, default 0. |
curl -X POST https://api.bigapi.dev/v1/image/to-pdf -H 'Authorization: Bearer $KEY' -F 'file=@scan1.jpg' -F 'file=@scan2.jpg' -o scans.pdf
HTTP/1.1 200 OK Content-Type: application/pdf X-BigAPI-Pages: 3 (PDF body, one page per image)