---
title: Convert Office Documents to PDF API
slug: convert-office-documents-to-pdf
url: https://apyhub.com/frolic/service/convert-office-documents-to-pdf
provider: Hakimi Labs
categories: [Ingestion Kit, Document Intelligence Kit, Output Kit]
tags: [office-conversion, pdf-generation, document-conversion, pdfa, file-transformation]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 25
mcp: true
---

# Convert Office Documents to PDF API

Convert DOC, XLS, PPT, ODT, CSV and similar files into a binary PDF. Supports PDF/A output and landscape pages for archival or document workflows.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/frolic/convert-office-documents-to-pdf/office-to-pdf` | What it does Converts an uploaded Office or text file to a PDF document and returns the resulting P… | 25 |

## Endpoint reference

### Office to PDF

`POST https://api.eu.apyhub.com/frolic/convert-office-documents-to-pdf/office-to-pdf` · 25 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | doc, docx, odt, rtf, txt, xls, xlsx, ods, csv, ppt, pptx or odp |
| `pdfa` | body | string | no | Archival format: PDF/A-1b, PDF/A-2b or PDF/A-3b One of: PDF/A-1b, PDF/A-2b, PDF/A-3b. |
| `landscape` | body | boolean | no | Landscape pages Default: `false`. |

#### Quickstart

Convert an Office document to a PDF by uploading the source file as multipart form data.

```bash
curl -X POST "https://api.eu.apyhub.com/frolic/convert-office-documents-to-pdf/office-to-pdf" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.docx"
```

#### What you'll get back

Returns a binary file (`string` with `format: binary`) containing the generated PDF.

```binary
<PDF file content>
```

## About

## What it does
Office to PDF converts common office files into a PDF binary you can store, share, or archive. Send a document, spreadsheet, presentation, or text file and get a PDF back.

Use the `file` upload with one of the supported formats: `doc`, `docx`, `odt`, `rtf`, `txt`, `xls`, `xlsx`, `ods`, `csv`, `ppt`, `pptx`, or `odp`. The request also accepts `pdfa` when you need an archival PDF/A output, with `PDF/A-1b`, `PDF/A-2b`, or `PDF/A-3b` available. Set `landscape` to `true` if you need wider page layout.

The response is a binary PDF, so it fits cleanly into document pipelines, download flows, and file-generation jobs. A typical use case is converting uploaded office attachments into a consistent PDF format before long-term storage, review, or downstream extraction.

Use Office to PDF when you want a predictable PDF output from user-uploaded office documents without adding conversion logic to your app.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/frolic/service/convert-office-documents-to-pdf
