🧩

DOCX to PDF (URL)

Fetch a remote DOCX and return a downloadable PDF

GET 10 credits /v1/convert/docx-to-pdf-url
curl -OJ "https://convert.toolkitapi.io/v1/convert/docx-to-pdf-url?url=https://toolkitapi.io/file.docx"
import httpx

resp = httpx.get(
    "https://convert.toolkitapi.io/v1/convert/docx-to-pdf-url?url=https://toolkitapi.io/file.docx",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/docx-to-pdf-url?url=https://toolkitapi.io/file.docx", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
Binary PDF stream
Content-Type: application/pdf
Content-Disposition: attachment; filename="output.pdf"
Content-Length: 128473

Description

Fetch a remote DOCX and return a downloadable PDF

How to Use

1

1. Pass the source DOCX URL as the `url` query parameter.

2

2. Optionally customize with the parameters listed below.

3

3. The server fetches, converts, and streams the PDF as an attachment.

4

4. Use `curl -OJ` or a browser to trigger a download with the server-supplied filename.

About This Tool

Fetch a DOCX document from a public URL and stream the converted PDF file directly back. No Base64 juggling — perfect for `curl -O` or a browser `` link.

Why Use This Tool

  • One-step downloads — Let users click to download a PDF built from a remote DOCX
  • Server-side pipelines — Pipe remote DOCXs straight into a conversion worker
  • Automation — Convert DOCXs in cron jobs without local storage
  • Sharing — Produce shareable PDF copies of DOCX sources

Frequently Asked Questions

How big can the source file be?
Typical upper bound is 50 MB for the GET endpoint. Larger files may queue as async jobs via the POST variant.
Is the source URL cached?
No — the file is fetched fresh on every call. Add your own CDN in front if you need caching.
Can I supply authentication for the source?
Public URLs only. Private sources should be pre-fetched and sent via the POST endpoint as Base64.