PPT Templates

PPT Template is a small templating library to generate PowerPoint presentations.

License

License

GroupId

GroupId

com.coreoz
ArtifactId

ArtifactId

ppt-templates
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

PPT Templates
PPT Template is a small templating library to generate PowerPoint presentations.
Project URL

Project URL

https://github.com/Coreoz/PPT-Templates
Project Organization

Project Organization

Coreoz
Source Code Management

Source Code Management

https://github.com/Coreoz/PPT-Templates

Download ppt-templates

How to add to project

<!-- https://jarcasting.com/artifacts/com.coreoz/ppt-templates/ -->
<dependency>
    <groupId>com.coreoz</groupId>
    <artifactId>ppt-templates</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.coreoz/ppt-templates/
implementation 'com.coreoz:ppt-templates:1.0.1'
// https://jarcasting.com/artifacts/com.coreoz/ppt-templates/
implementation ("com.coreoz:ppt-templates:1.0.1")
'com.coreoz:ppt-templates:jar:1.0.1'
<dependency org="com.coreoz" name="ppt-templates" rev="1.0.1">
  <artifact name="ppt-templates" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.coreoz', module='ppt-templates', version='1.0.1')
)
libraryDependencies += "com.coreoz" % "ppt-templates" % "1.0.1"
[com.coreoz/ppt-templates "1.0.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.poi : poi-ooxml jar 3.17
org.apache.poi : poi-scratchpad jar 3.17
net.coobird : thumbnailator jar 0.4.8
org.slf4j : slf4j-api jar 1.7.25

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.18

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 3.8.0
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

PPT Templates

Build Status

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.

Getting started

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:

PPT template hello wold

Features

  • 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:

Link on an image - step 1

Step 2:

Link on an image - step 2

Demo

See the demonstration project.

com.coreoz

Coreoz

Versions

Version
1.0.1
1.0.0
1.0.0-rc5
1.0.0-rc4
1.0.0-rc3
1.0.0-rc2
1.0.0-rc1
1.0.0-beta1