Skip to content

Overlay a PDF

POST
/v1/pdf/overlay
curl -H "X-Api-Key: $KEY" -F files=@letter.pdf -F files=@letterhead.pdf \
http://localhost:9027/v1/pdf/overlay -o on-letterhead.pdf

Lays the second PDF over the first, page by page.

Media typemultipart/form-data
object
files
required

Two PDFs: the base, then the overlay laid over it page by page.

Array<string>
outputFilename
string | null

The combined PDF

Media typeapplication/pdf

The file, as bytes.

string format: binary

Accepted; the result goes to the webhook

The request is wrong

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}

Not supported in this version

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}