# Word, Excel & PowerPoint to PDF Converter (Bulk, LibreOffice) (`toowl/office-converter`) Actor

Convert DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, RTF and CSV to PDF (or PDF/A) in bulk from URLs, or between Word/ODT, Excel/ODS/CSV and PowerPoint/ODP. LibreOffice with Office-compatible fonts. Pay per document.

- **URL**: https://apify.com/toowl/office-converter.md
- **Developed by:** [Chalid Ade](https://apify.com/toowl) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 documents converted

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Word, Excel & PowerPoint to PDF Converter (Bulk)

Convert **DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODS, ODP, RTF and CSV to PDF** in bulk from URLs, with the layout kept as close to Microsoft Office as LibreOffice gets. The same Actor also converts **between editable formats**: old DOC/XLS/PPT to modern DOCX/XLSX/PPTX, Office ↔ OpenDocument, documents to plain text and every sheet of a workbook to its own CSV.

No Microsoft Office licence, no Windows server, no upload to a third-party converter: LibreOffice runs inside the Actor.

### Use cases

- Turn invoices, contracts and reports generated as DOCX into PDF before emailing or archiving them.
- **PDF/A** for tenders, courts and government portals that refuse plain PDF.
- Export every sheet of an Excel file to CSV for a data pipeline, or fit each sheet on one PDF page.
- Batch-upgrade a folder of legacy `.doc` / `.xls` / `.ppt` files to DOCX / XLSX / PPTX.
- Presentations to PDF with speaker notes pages.

### Features

- **Office-compatible fonts** installed: Carlito (Calibri), Caladea (Cambria), Liberation (Arial, Times New Roman, Courier New), Noto for Asian scripts and emoji.
- **PDF/A-2b**, **one page per sheet**, **notes pages**, optional **picture recompression** for smaller PDFs.
- Formulas are calculated, so the PDF shows values, not `=SUM(…)`.
- File type detected from the content when the URL has no extension.
- Macros never run.
- **Pay per document.** Failed files are free.

### Input

```json
{
  "files": [
    { "url": "https://example.com/contract.docx" },
    { "url": "https://example.com/budget.xlsx" }
  ],
  "outputFormat": "pdf",
  "pdfA": false,
  "onePagePerSheet": true
}
```

| Field | Default | Notes |
| --- | --- | --- |
| `files` | — | Document URLs |
| `outputFormat` | `pdf` | `pdf`, `office` (DOCX/XLSX/PPTX), `odf` (ODT/ODS/ODP), `text` (TXT, or one CSV per sheet) |
| `pdfA` | false | PDF/A-2b |
| `onePagePerSheet` | false | Spreadsheets → PDF |
| `includeNotes` | false | Presentations → PDF |
| `imageQuality` | — | 10–100: recompress pictures inside the PDF |
| `maxFileSizeMb` | 100 | |
| `timeoutSecs` | 180 | Per document |

### Output

```json
{
  "url": "https://example.com/budget.xlsx",
  "name": "budget.xlsx",
  "downloadUrl": "https://api.apify.com/v2/key-value-stores/…/records/0002-budget.pdf",
  "inputFormat": "xlsx",
  "outputFormat": "pdf",
  "pages": 3,
  "sizeBefore": 48211,
  "sizeAfter": 61450
}
```

A workbook exported to CSV also gets `files`: one link per sheet.

### Call it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/toowl~office-converter/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"files":[{"url":"https://example.com/contract.docx"}]}'
```

Works the same from Python, JavaScript, Make, Zapier and n8n (Apify app/node).

### Pricing

Pay per event: one `document-converted` per input document. Failed documents are free.

### Free browser version

[toowl.my.id/en/doc-to-pdf](https://toowl.my.id/en/doc-to-pdf/), [excel-to-pdf](https://toowl.my.id/en/excel-to-pdf/) and [ppt-to-pdf](https://toowl.my.id/en/ppt-to-pdf/) convert single files in your browser, free, nothing uploaded.

### Use it from AI agents (MCP)

Add this Actor as a tool to Claude, Cursor, VS Code or any MCP client through Apify's MCP server:

```
https://mcp.apify.com/?actors=toowl/office-converter
```

The agent can then pass file URLs and read the results itself.

### More toowl file APIs

Speech to text & subtitles, AI vocal remover, text to speech, AI object remover, PDF to Markdown, PDF to Word & Excel, HTML/URL to PDF, OCR, Office to PDF, PDF compressor, PDF merge/split, PDF password protect, PDF to image, image to PDF, bulk watermark, image converter and compressor, background remover, AI upscaler, image to SVG, QR code and barcode generators, QR/barcode reader, favicon generator, video compressor, frame extractor and audio converter. All pay per file, all batch-friendly: [toowl.my.id/en/api](https://toowl.my.id/en/api/).

Questions or a format that fails? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `files` (type: `array`):

Direct links to the documents. Word (DOC, DOCX), Excel (XLS, XLSX, CSV), PowerPoint (PPT, PPTX, PPS), OpenDocument (ODT, ODS, ODP) and RTF.

## `outputFormat` (type: `string`):

PDF for every kind of document, or another editable format of the same kind (Word ↔ ODT, Excel ↔ ODS, PowerPoint ↔ ODP). Plain text is TXT for documents and CSV (one file per sheet) for spreadsheets.

## `pdfA` (type: `boolean`):

Write PDF/A-2b, the archival PDF many courts, tenders and government portals ask for.

## `onePagePerSheet` (type: `boolean`):

Fit each whole sheet on a single PDF page instead of splitting it over printed pages.

## `includeNotes` (type: `boolean`):

Append a notes page for every slide after the slides.

## `imageQuality` (type: `integer`):

Recompress pictures inside the PDF at this quality and at most 300 DPI, for smaller files. Leave empty to keep them as they are.

## `maxFileSizeMb` (type: `integer`):

Larger files are skipped with an error (not charged).

## `timeoutSecs` (type: `integer`):

A document that takes longer is skipped with an error (not charged).

## Actor input object example

```json
{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-document.docx"
    },
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-sheet.xlsx"
    }
  ],
  "outputFormat": "pdf",
  "pdfA": false,
  "onePagePerSheet": false,
  "includeNotes": false,
  "maxFileSizeMb": 100,
  "timeoutSecs": 180
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input file, with a download link for the result where there is one.

## `files` (type: `string`):

Result files in the default key-value store, plus a SUMMARY record.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "files": [
        {
            "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-document.docx"
        },
        {
            "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-sheet.xlsx"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("toowl/office-converter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "files": [
        { "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-document.docx" },
        { "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-sheet.xlsx" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("toowl/office-converter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-document.docx"
    },
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/sample-sheet.xlsx"
    }
  ]
}' |
apify call toowl/office-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toowl/office-converter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/W6eCZJqAL3rSsHHZV/builds/M2xXqaL5V1CBrJkBD/openapi.json
