PPT Template is a small templating library to generate PowerPoint presentations. This project is mainly based on POI XSLF.
Templates are directly created in PowerPoint using a variable system. Templates must use the MS Office Open XML format, that means the file extension should be .pptx.
Include PPT Templates in your project:
<dependency> <groupId>com.coreoz</groupId> <artifactId>ppt-templates</artifactId> <version>1.0.1</version> </dependency>Create a template and fill it with your data:
try(FileOutputStream out = new FileOutputStream("generated.pptx")) { new PptMapper() .text("title", "Hello") .text("subtitle", "World!") .processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx")) .write(out); }Tadaaa:
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the com.coreoz.ppt.PptMapper API.
For image replacement, styling or hiding elements, variables must be put on a link on these elements.
Step 1:
Step 2:
See the demonstration project.


