Skip to content

Render HTML to PDF

POST
/render/html
curl --request POST \
--url http://localhost:8080/render/html \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "html": "example", "baseUrl": "example", "attachments": [ { "name": "example", "content": "example", "mimeType": "example", "description": "example", "relationship": "example" } ], "embedColorProfile": true }'

Renders HTML to a PDF/A-3a + PDF/UA document, or a JSON validation response when Accept is application/json.

X-Upload-Url
string

Presigned PUT URL that receives the generated document.

Media type application/json
RenderHtmlRequest
object
html
required
string
baseUrl
string | null
attachments
Array<object> | null
FileAttachment
object
name
required
string
content
required
string
mimeType
string
description
string | null
relationship
string
embedColorProfile
boolean
Example generated
{
"html": "example",
"baseUrl": "example",
"attachments": [
{
"name": "example",
"content": "example",
"mimeType": "example",
"description": "example",
"relationship": "example"
}
],
"embedColorProfile": true
}

PDF document or JSON validation response

string format: binary

PDF uploaded successfully

Invalid request, empty HTML, or JSON/upload conflict

Rendering failed

Upload target rejected the request or was unreachable