# Office to PDF

> Skill `office-to-pdf` on Faro. 4 sub-skills.

Converts Microsoft Office and OpenDocument files (Word, Excel, and PowerPoint) to PDF, preserving the layout and formatting of the original. Also renders static HTML and plain-text files to PDF. Provide the source file and get back a download link to the resulting PDF.

**Category:** Documents  
**Tags:** office, docx, xlsx, pptx, pdf, convert  
**Use when:** You have a Word document, slide deck, spreadsheet, or HTML/text file and need a PDF of it.  
**Not for:** Extracting text or data from a file, editing or filling it, converting to anything but PDF, or merging and splitting PDFs.  
**Returns:** file (application/pdf) — Returns a downloadable PDF, not text read back into context. The page count depends on the source, and billing is 0.2 credits per output page.

## How to run
Skills run through one gateway with your Faro token. Hand it an `intent` in plain language; Faro routes to the right sub-skill, runs it, and bills per call. Raw tools are internal plumbing and are not directly callable.

```
POST https://skill.askfaro.com/skills/office-to-pdf/run
Authorization: Bearer faro_<your_key>
Content-Type: application/json

{"intent":{"prompt":"Convert this Word document to PDF"}}
```

Or from the CLI:

```bash
pip install askfaro-cli && askfaro auth login
askfaro run office-to-pdf "Convert this Word document to PDF"
```

Full run reference: https://askfaro.com/llms/run.md — Agent recipe: https://askfaro.com/llms/skill.md

## Example requests

- Convert this Word document to PDF
- Convert this PowerPoint presentation to PDF
- Convert this Excel spreadsheet to PDF
- Convert this HTML file to a PDF

## Sub-skills

### Document to PDF

Renders a Word or OpenDocument file to PDF, preserving layout, fonts, and tables.

**Cost:** ~1 credits / page (up to 20) — 0.2 credits per output page. A few-page letter is the usual case; a long report costs more.

**Use when:** You have a DOCX, DOC, ODT, or RTF and want a faithful PDF of it.

**Details:** https://askfaro.com/llms/skills/office-to-pdf/document.md

---

### Slide deck to PDF

Renders a slide deck to PDF, one slide per page, with the layout fixed.

**Cost:** ~2 credits / page (up to 20) — 0.2 credits per output page, one slide per page. A short deck is the usual case.

**Use when:** You have a PPTX, PPT, or ODP and want each slide as a PDF page.

**Details:** https://askfaro.com/llms/skills/office-to-pdf/presentation.md

---

### Spreadsheet to PDF

Renders a spreadsheet to PDF using the workbook's saved print settings.

**Cost:** ~1 credits / page (up to 20) — 0.2 credits per output page. Page count depends on the sheet's print layout, so a wide sheet without fit-to-width settings can clip or sprawl.

**Use when:** You have an XLSX, XLS, ODS, or CSV and want a printable PDF of it.

**Details:** https://askfaro.com/llms/skills/office-to-pdf/spreadsheet.md

---

### HTML or text to PDF

Renders an HTML or plain-text file to PDF as simple rendered markup.

**Cost:** ~1 credits / page (up to 10) — 0.2 credits per output page. Simple text or markup is the usual case.

**Use when:** You have a static HTML or TXT file and want a basic PDF of it.

**Details:** https://askfaro.com/llms/skills/office-to-pdf/markup.md

---

---
On the web: https://askfaro.com/search/office-to-pdf