pptx_export_html
Convert PowerPoint PPTX files to HTML using LibreOffice, with error handling for missing files and unsupported formats.
Instructions
Convert a .pptx file to HTML via LibreOffice headless.
Delegates to :func:office_mcp.exporters.export_to_html. Unlike
.docx (which uses mammoth), .pptx always requires
LibreOffice (VAL-PPTX-062).
Args:
path: Path to an existing .pptx.
output: Target path for the produced HTML. The parent
directory is created if it does not exist.
folder: Optional base folder for relative paths.
Returns:
{"output_path": "<absolute path of the produced HTML>"}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the source is
missing (VAL-PPTX-063); ERR_UNSUPPORTED_FMT for
non-.pptx sources (VAL-PPTX-064);
ERR_LIBREOFFICE_MISSING when soffice is not on
PATH (VAL-PPTX-062); ERR_EXPORT_FAILED for any
other failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| output | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||