Convert an Office file to PDF
pdf_from_officeConvert Word, Excel, PowerPoint, or OpenDocument files to PDF with LibreOffice, saving a new PDF without overwriting existing files.
Instructions
Convert a Word, Excel, PowerPoint or OpenDocument file (.docx, .xlsx, .pptx, .odt, .ods, .odp) to a new PDF with LibreOffice installed on this computer. Fails with an install hint when LibreOffice isn't installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the Office file inside an allowed folder (absolute, or relative to the first allowed folder). | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| engine | Yes | ||
| output | Yes |