arrow_back All endpoints

Word to PDF

POST/api/v1/tools/word-to-pdf15 credits per callworddocxpdfconvertofficelibreoffice

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.

receipt_long
Why 15 credits?

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.

bash
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

FieldTypeRequiredDefaultDescription
fileUrlstringrequired- Publicly reachable URL of the Word/ODT/RTF file.

Output

FieldTypeDescription
fileBase64stringConverted PDF, base64-encoded, without a data URI prefix.
mimeTypestringAlways application/pdf.
fileNamestringSuggested download name.
sizeBytesintegerSize 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.