Word to PDF API

Convert DOCX and DOC files to PDF with perfect formatting. Preserve fonts, images, tables, and layouts exactly as intended.

$0.01 per conversion • Perfect formatting • Sub-second speed

curl -X POST "https://api.chargedapi.com/convert?format=pdf" \
  -H "X-API-Key: your_api_key" \
  -F "file=@document.docx"

# Response:
{
  "success": true,
  "job_id": "abc123",
  "download_url": "https://...",
  "format": "pdf",
  "credits_used": 1
}

Supported Word Formats

.DOCX

Word 2007+

.DOC

Word 97-2003

.RTF

Rich Text

.ODT

OpenDocument

.PDF

Output Format

Perfect Conversion Quality

Font Preservation

Fonts are embedded or substituted accurately. Your PDFs look exactly like the originals.

Images & Graphics

All images, charts, and graphics preserved in high quality.

Tables & Layouts

Complex tables, columns, and page layouts converted accurately.

Hyperlinks

Internal and external links remain clickable in the PDF.

Bookmarks & TOC

Table of contents converted to PDF bookmarks for navigation.

Headers & Footers

Page numbers, headers, and footers preserved correctly.

Common Use Cases

Contract Generation

Generate contracts in Word, convert to PDF for signing. Perfect for legal workflows.

Report Distribution

Convert Word reports to PDF for easy sharing and consistent viewing.

Document Archival

Convert Word documents to PDF/A for long-term archival and compliance.

Print-Ready Output

Generate print-ready PDFs from Word templates for professional printing.

Code Examples

Python

import requests

with open("document.docx", "rb") as f:
    response = requests.post(
        "https://api.chargedapi.com/convert",
        headers={"X-API-Key": "your_api_key"},
        params={"format": "pdf"},
        files={"file": f}
    )

pdf_url = response.json()["download_url"]
print(f"PDF ready: {pdf_url}")

Node.js

const FormData = require('form-data');
const fs = require('fs');
const axios = require('axios');

const form = new FormData();
form.append('file', fs.createReadStream('doc.docx'));

const response = await axios.post(
  'https://api.chargedapi.com/convert?format=pdf',
  form,
  { headers: { 'X-API-Key': 'your_api_key' }}
);

console.log(response.data.download_url);

Simple, Transparent Pricing

$0.01
per Word to PDF conversion
  • 50 free conversions to start
  • DOCX, DOC, RTF, ODT supported
  • Perfect formatting preserved
  • Sub-second conversion speed
  • Files auto-deleted after 24 hours
Get Started Free

Start Converting Word to PDF

Perfect document conversion with one API call. Try free today.

Get Your Free API Key