Running from command line#
You can run the command pptx-renderer
from the commandline to convert an
input template into an output presentation.
The following is the syntax of the command.
pptx-renderer#
Generate a powerpoint presentation from a template
TEMPLATE_PATH: Path to the template file with placeholders
OUTPUT_PATH: Path to the rendered output ppt
pptx-renderer [OPTIONS] TEMPLATE_PATH OUTPUT_PATH
Options
- --fail_on_error#
By default, the renderer will not stop when it encouters an error while rendering a placeholder. Setting this flag will cause it to stop at the first error.
- -i, --input <input>#
Path to a json file with key value pairs of variables used in the template
Arguments
- TEMPLATE_PATH#
Required argument
- OUTPUT_PATH#
Required argument
Example#
pptx-renderer input_template.pptx output_file.pptx