https://github.com/cezarypiatek/powerpointtemplates
https://github.com/cezarypiatek/powerpointtemplates
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cezarypiatek/powerpointtemplates
- Owner: cezarypiatek
- Created: 2021-01-02T23:17:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T17:13:08.000Z (about 2 years ago)
- Last Synced: 2025-01-17T05:43:45.172Z (9 months ago)
- Language: C#
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PowerPointTemplates
This is a command line tool that allows for replacing placeholders inside PowerPoint documents with values provided as JSON files.
## Requirements
- Minimum `dotnet core 3.1`
- Microsoft Office## How to install
```
dotnet tool install --global PowerPointTemplates -no-cache --ignore-failed-sources
```Nuget https://www.nuget.org/packages/PowerPointTemplates
## Hot to create placeholders
Use `Alt Text` to convert Text Box and Shapes into a placeholders. `Alt Text` is used to match values from the JSON file.

JSON file with a related placeholder value:
```json
{
"Survey_Link": "http://tinyurl.com/sample",
"Survey_Code": "c:\\images\\code.png"
}
```## How to use it
Populate PowerPoint template with values and export slides as PNG images
```
dotnet tool run powerpointtemplates transform my_template.pptx -v data.json -e 'PNG' -o ./output
```Populate PowerPoint template with values and save the result as a new document
```
dotnet tool run powerpointtemplates transform my_template.pptx -v data.json -s -f result.pptx -o ./output
```