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" } ], "xmpSchemas": [ { "namespace": "example", "prefix": "example", "name": "example", "properties": [ { "name": "example", "value": "example", "valueType": "example", "category": "example", "description": "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
xmpSchemas
Array<object> | null
XmpSchema
object
namespace
required
string
prefix
required
string
name
required
string
properties
required
Array<object>
XmpProperty
object
name
required
string
value
required
string
valueType
string
category
string
description
string | null
embedColorProfile
boolean
Example generated
{
"html": "example",
"baseUrl": "example",
"attachments": [
{
"name": "example",
"content": "example",
"mimeType": "example",
"description": "example",
"relationship": "example"
}
],
"xmpSchemas": [
{
"namespace": "example",
"prefix": "example",
"name": "example",
"properties": [
{
"name": "example",
"value": "example",
"valueType": "example",
"category": "example",
"description": "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