Word to PDF
Downloads a Word-compatible file from a public URL and converts it to PDF with LibreOffice, preserving headings, fonts and layout. Supported uploads: .doc, .docx, .odt, .rtf. The converted PDF is returned as base64.
Spins LibreOffice on a worker for several seconds per file, which is far more compute than a DNS lookup. Priced so a loop of conversions cannot quietly drain the worker.
Any HTTP client works. Replace the key with one from your dashboard.
curl -X POST https://toolkitbackend-j69m.onrender.com/api/v1/tools/word-to-pdf \
-H "Authorization: Bearer tb_live_<your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/cv.docx"
}'Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
fileUrl | string | required | - | Publicly reachable URL of the Word/ODT/RTF file. |
Output
| Field | Type | Description |
|---|---|---|
fileBase64 | string | Converted PDF, base64-encoded, without a data URI prefix. |
mimeType | string | Always application/pdf. |
fileName | string | Suggested download name. |
sizeBytes | integer | Size of the decoded PDF. |
Try it
Sends a real POST /api/v1/tools/word-to-pdf from your browser and charges 15 credits to your account.
Sign in to run this endpoint. New accounts start with free credits.