pptTopdf

Convert selected PPTX files to PDF using Microsoft PowerPoint on Windows.

Function

pptTopdf(output_file=None, source=None)

Parameters

output_file

Type: str or None

Optional PDF filename. Used only when exactly one PPTX is selected.

source

Type: path, iterable of paths, or None

Optional PPTX input. When omitted, every `.pptx` in the current folder is discovered.

Returns

A `Path` for one conversion or a list of `Path` objects for multiple conversions; `None` when no PPTX files are found.

Examples

Convert all PPTX files

pptTopdf()

Convert one PPTX

pptTopdf(source="presentation.pptx", output_file="presentation.pdf")

Notes

Requires Windows, Microsoft PowerPoint, and the `toolvix[windows]` extra (`pywin32`).

Dynamic input behavior

When source is omitted, Toolvix discovers matching files in the current working folder. When source is supplied, only the supplied files are processed. This makes nested pipelines deterministic.

Back to function index · Nesting and chaining