PDF

Images to PDF (one image per page)

Turns 1 to 20 PNG/JPEG images into a PDF. page_size "auto" makes each page the size of its image; A4, A3, A5, Letter, Legal or Tabloid fit the image inside.

Costs 1 credit per call.

post/pdf-from-images

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/pdf-from-images
  • Auth: API key in header x-api-key

Request body

imagesstring[] required

The images to include, one per page and in order: 1 to 20 base64-encoded PNG or JPEG strings (about 4 MB in total).

page_size'auto' | 'A4' | 'A3' | 'A5' | 'Letter' | 'Legal' | 'Tabloid'

Page size: "auto" (default: each page matches its image), "A4", "A3", "A5", "Letter", "Legal" or "Tabloid".

output'json' | 'binary' | 'url' | 'pdf'

How to return the PDF: "json" (base64 in the JSON response), "binary" (the PDF itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

The resulting PDF (shape depends on output).

OR

Changes

No recorded changes to this operation across all 1 revision of this API.