---
title: Convert Spreadsheets to PDF API
slug: convert-spreadsheet-to-pdf
url: https://apyhub.com/apyhub/service/convert-spreadsheet-to-pdf
provider: ApyHub
categories: [Output Kit]
tags: [spreadsheet-to-pdf, excel-conversion, pdf-generation, document-conversion, ods, xlsx]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 6
atoms: 100
mcp: true
alias: converter-spreadsheet-pdf
---

# Convert Spreadsheets to PDF API

Excel to PDF API: send an XLS, XLSX, or ODS file, a URL, or base64 bytes and get a PDF back as a download or signed link. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/link` | What it does Converts an uploaded spreadsheet file to PDF and returns a signed URL to the generated… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/download` | What it does Converts a spreadsheet available at a remote URL into a PDF and returns the generated… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/link` | What it does Converts a remotely hosted spreadsheet file, provided as a URL, into a PDF and returns… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/download` | What it does Converts a base64-encoded spreadsheet into a PDF file and returns the result as a bina… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/link` | What it does Converts a base64-encoded spreadsheet file into a PDF and returns a signed link to the… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/download` | What it does Uploads a spreadsheet file and returns a PDF download generated from that file. The re… | 100 |

## Endpoint reference

### Convert spreadsheet upload to PDF signed link 

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/link` · 100 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes |  |
| `landscape` | query | boolean | no | Default: `false`. |

#### Quickstart

Upload a spreadsheet file to convert it to PDF.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/link" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/spreadsheet.xlsx"
```

#### What you'll get back

Returns a JSON object with a `data` string field containing the PDF file URI.

```json
{
  "data": "https://example.com/output.pdf"
}
```

### Convert remote spreadsheet URL to PDF download 

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/download` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Example: `https://assets.apyhub.com/samples/sample.xlsx`. |
| `landscape` | query | boolean | no | Default: `false`. |

#### Quickstart

Convert a spreadsheet from a URL into a PDF file.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.xlsx"}'
```

#### What you'll get back

Returns a binary file response containing the generated PDF. The output schema is a raw `string` with `binary` format, so there is no JSON wrapper or fields to describe.

### Convert remote spreadsheet URL to PDF signed link

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/link` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Example: `https://assets.apyhub.com/samples/sample.xlsx`. |

#### Quickstart

Convert a spreadsheet from a public URL into a PDF by sending the file link in the request body.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/url/link" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.xlsx"}'
```

#### What you'll get back

Returns a JSON object with a `data` string field containing the URI of the generated PDF.

```json
{
  "data": "https://..."
}
```

### Convert base64-encoded spreadsheet to PDF download

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/download` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `base64` | body | string | yes | Base64-encoded file bytes. |
| `landscape` | query | boolean | no | Default: `false`. |

#### Quickstart

Convert a Base64-encoded spreadsheet to PDF and download the result.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/download?landscape=false" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"base64":"UEsDBBQAAAAIAAeLbV..."}'
```

#### What you'll get back

Returns a binary file response containing the generated PDF.

### Convert base64-encoded spreadsheet to PDF signed link

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/link` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `base64` | body | string | yes | Base64-encoded file bytes. |

#### Quickstart

Convert a spreadsheet from a Base64 string into a PDF by sending the encoded file bytes.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/base64/link" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"base64":"UEsDBBQAAAAIAAeLbV..."}'
```

#### What you'll get back

Returns a JSON object with a `data` string field containing a URI to the generated PDF.

```json
{
  "data": "https://example.com/output.pdf"
}
```

### Convert spreadsheet upload to PDF download 

`POST https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/download` · 100 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | .xls, .xlsx, or .ods |
| `output` | query | string | no | Example: `output.pdf`. |
| `landscape` | query | boolean | no | Default: `false`. |

#### Quickstart

Upload a spreadsheet file to convert it into a PDF download.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-spreadsheet-to-pdf/file/download?output=output.pdf" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/file.xlsx"
```

#### What you'll get back

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

```binary
```

## About

## What it does
The Excel to PDF API renders a spreadsheet as a PDF. Send an `.xls`, `.xlsx` or `.ods` file as an upload, point it at a remote `url`, or pass the bytes as a `base64` string, and get the PDF back as a direct download or as a signed link.

Six endpoints cover those combinations. Download routes return binary PDF content, which suits a request someone is waiting on. Link routes return JSON with a `data` field holding a signed URI, which suits background jobs and anything that stores the file for later. All three download routes and the file upload link route accept `landscape` to rotate the page, and the file download route takes an `output` query value to name the generated file. File uploads go up to 100 MB per request.

Finance and operations teams use the Excel to PDF API to turn working spreadsheets into documents that circulate: invoices, month-end reports, price lists, and statements that should stay fixed once they leave the system. Internal tools reach for it when a user clicks export and expects a file colleagues can open without Excel installed.

It pairs with the [CSV to Excel API](https://apyhub.com/apyhub/service/convert-csv-to-xlsx) when the data arrives as CSV and becomes a workbook first, and with the [PDF Watermark API](https://apyhub.com/apyhub/service/apply-watermark-on-pdf) when the output ships marked as a draft or branded for a client. For slide decks in the same workflow, use the [Presentation to PDF API](https://apyhub.com/apyhub/service/convert-presentation-to-pdf). All of them are callable by AI agents through ApyHub MCP.

## 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/apyhub/service/convert-spreadsheet-to-pdf
