Skip to content

Convert HTML to PDF

POST
/convert
curl --request POST \
--url http://localhost:8080/convert \
--header 'Content-Type: application/json' \
--data '{ "attachments": [ { "content": "example", "description": "example", "mimeType": "example", "name": "example", "relationship": "example" } ], "baseUrl": "example", "html": "example" }'

Converts HTML to a PDF/A-3a compliant document with PDF/UA accessibility. Returns the PDF binary.

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

PDF document

Media type application/pdf
string format: binary

Invalid request or empty HTML

Conversion failed