Office to PDF API
Send the URL of a Word, Excel or PowerPoint file and get a PDF back. No office suite to install, patch or keep running on your own servers.
- Free plan
- No credit card
Request
curl -X POST https://apdf.io/api/pdf/file/convert \
-H "Authorization: Bearer TOKEN" \
-d file="FILE_URL"
const data = new FormData();
data.append('file', 'FILE_URL');
fetch('https://apdf.io/api/pdf/file/convert', {
headers: {'Authorization': 'Bearer TOKEN'},
method: 'POST',
body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post(
'https://apdf.io/api/pdf/file/convert', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/file/convert',
{
'file' => 'FILE_URL'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/file/convert',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/file/convert")
fmt.Println(resp.String())
}
import okhttp3.*;
class Pdf {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
FormBody formBody = new FormBody.Builder()
.add("file", "FILE_URL")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/file/convert")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
Any Office file.
One PDF back.
Documents, spreadsheets and slides use the same endpoint.
Each page or slide of the file becomes a page of the PDF.
- Word
- docx, doc
- Excel
- xlsx, xls
- PowerPoint
- pptx, ppt
- OpenDocument
- odt, ods, odp
- Rich text
- rtf
Office in, PDF out.
People work in Word, Excel and PowerPoint. Your app needs a PDF it can store, show and send.
Contracts from Word templates
Fill a Word template with your customer's details, then convert it so they get a PDF instead of an editable file.
Spreadsheet reports
Send the monthly Excel report as a PDF, so it opens the same everywhere and nobody needs Excel to read it.
Slide decks for sharing
Turn uploaded PowerPoint decks into PDFs your app can show in the browser, with one page for every slide.
One format for uploads
Accept the Office files your users upload and store a single format, ready to merge, watermark or archive.
Convert from anywhere.
Convert documents as soon as they land in your storage.
One account and one monthly allowance behind every route.
One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.
POST /api/pdf/file/convert
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Convert Office Document to PDF
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Convert DOC/XLS/PPT to PDF
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
convert-office-to-pdf
1,000 conversions
a month. Free.
Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.
- One call is one operation, however many pages.
- Only calls that do the work are counted.
- Hard limits, so no surprise overage charges.
Office to PDF, answered
Office to PDF tutorials
Convert PowerPoint to PDF in Node.js — Without Office on Your Server
Most pptx-to-pdf packages on npm need an office suite installed first. Convert decks with the Apdf API and Node's built-in fetch instead — a reusable helper, and an Express route that serves every sales deck as a cached PDF.
Convert Word to PDF in Python — Without Microsoft Word on Your Server
docx2pdf needs Microsoft Word, and an office suite on the server needs babysitting. Send the .docx URL to the Apdf API instead and download the PDF — one script for a single document, and a webhook receiver that converts a whole batch of client reports without polling.
Your code made the PDF.
Then it went dark.
Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.
API · Webhook · MCP