pptx_export_pdf
Convert a PowerPoint .pptx file to PDF using LibreOffice headless. Supports concurrent exports.
Instructions
Convert a .pptx file to PDF via LibreOffice headless.
Delegates to :func:office_mcp.exporters.export_to_pdf. A unique
-env:UserInstallation is used per call so multiple exports
can run concurrently (VAL-WORD-079 pattern).
Args:
path: Path to an existing .pptx.
output: Target path for the produced PDF. The parent
directory is created if it does not exist (VAL-PPTX-057).
folder: Optional base folder for relative paths.
Returns:
{"output_path": "<absolute path of the produced PDF>"}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the source is
missing (VAL-PPTX-059); ERR_UNSUPPORTED_FMT for
non-.pptx sources (VAL-PPTX-060);
ERR_LIBREOFFICE_MISSING when soffice is not on
PATH (VAL-PPTX-058); 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 | |||