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
}
Word 2007+
Word 97-2003
Rich Text
OpenDocument
Output Format
Fonts are embedded or substituted accurately. Your PDFs look exactly like the originals.
All images, charts, and graphics preserved in high quality.
Complex tables, columns, and page layouts converted accurately.
Internal and external links remain clickable in the PDF.
Table of contents converted to PDF bookmarks for navigation.
Page numbers, headers, and footers preserved correctly.
Generate contracts in Word, convert to PDF for signing. Perfect for legal workflows.
Convert Word reports to PDF for easy sharing and consistent viewing.
Convert Word documents to PDF/A for long-term archival and compliance.
Generate print-ready PDFs from Word templates for professional printing.
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}")
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);
Perfect document conversion with one API call. Try free today.
Get Your Free API Key