Skip to main content
POST
/
export
/
doc-to-pdf
Export to PDF
curl --request POST \
  --url https://app.myhero.so/export/doc-to-pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "documentId": "<string>",
      "docx": "<string>"
    }
  ]
}
'
{
  "pdfDocuments": [
    {
      "documentId": "<string>",
      "pdf": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Converts one or more base64-encoded DOCX files to PDF via LibreOffice and returns the results as base64-encoded PDF strings. Each item in data must include a documentId (for permission checks) and the base64 docx content. Returns an array of { documentId, pdf } objects.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
data
object[]
required
Minimum array length: 1

Response

200 response

pdfDocuments
object[]
required