Office to PDF API

POST

Turn Word, Excel, PowerPoint and OpenDocument files into PDFs.

Office to PDF converts Word, Excel, PowerPoint, OpenDocument, RTF, text and CSV files to PDF and returns a download link valid for 2 days, with the page count of the result. Upload the file or send its URL. Paid plans can convert only selected pages and set landscape orientation.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/officetopdf
document
Click or drag a file to upload.doc, .docx, .xls, .xlsx, .ppt, .pptx, .odt, .ods, .odp, .rtf, .txt, .csv · max 400KB for live testing
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "pdfName": "8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf",
    "inputName": "SampleDoc.docx",
    "inputFormat": "docx",
    "pageCount": 2,
    "landscape": false,
    "pageRanges": null,
    "size": 23654,
    "expires": 1792400000000,
    "downloadURL": "https://storage.googleapis.com/apiverve/APIData/officetopdf/8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792400000&Signature=SAMPLE"
  }
}

About the Office to PDF API

Documents are converted with LibreOffice, so fonts, tables, images and page layout are kept as closely as an office suite would print them. The file's extension is checked against its contents, and a file that turns out to be another office format is converted as what it really is. Each call accepts one document up to 10 MB. Password-protected documents are not supported.

What people use it for

Document Archiving
Store contracts, letters and reports as PDFs so they open the same way everywhere, years later.
Invoice and Quote Delivery
Turn invoices or quotes generated as Word or Excel files into PDFs before emailing them to customers.
Upload Normalization
Accept any office file from users and keep a single PDF copy for previews and downstream processing.
Print Preparation
Convert slide decks and spreadsheets to fixed-layout PDFs for printing or sharing.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Office to PDF

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Office to PDF API.

Read the docs →
How many conversions does the Starter plan cover?
Starter covers about 6,600 conversions each month. At 30 credits per request, that works out to $4.50 per 1,000 conversions, or about $0.0045 per document. The Free plan includes 6 conversions per month for testing.
What does the Free plan return?
The Free plan converts the whole document and returns the PDF's download link, file name, page count, size, the detected input format and the link expiry. Paid plans add pageRanges, to convert only some pages, and landscape orientation.
Which file formats are supported?
Word (doc, docx), Excel (xls, xlsx), PowerPoint (ppt, pptx), OpenDocument (odt, ods, odp), RTF, plain text and CSV, up to 10 MB per file. Uploads on the Free plan are limited to 400 KB.
What if a file has the wrong extension?
The contents are checked, not just the name. A .doc that is really RTF, or an .xls that is really an xlsx workbook, is converted as what it is and reported in inputFormat. A file that is not an office document at all is rejected with a 400.
How long is the PDF kept?
The download link is a signed URL that expires after 2 days, given in the expires field as a Unix timestamp in milliseconds.

Ready to build with Office to PDF? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs