Graphics2DDemo - Apache POI PowerPoint Slides Example


What is Graphics2DDemo example in the Apache POI package? How to run Graphics2DDemo example?



Graphics2DDemo example in the Apache POI package is created by Yegor Kozlov. It provides a simple bar chart demo in *.ppt format.

Graphics2DDemo example uses the Horrible Slide Layout Format (HSLF) API, which supports PowerPoint slides in *.ppt format only.

Here is the command to run Graphics2DDemo to generate PowerPoint slide file in *.ppt file format compatible with Microsoft PowerPoint 97 version.

   -cp .;C:\local\poi-3.15\poi-examples-3.15.jar;

If you open the output file, hslf-graphics.ppt, in PowerPoint, you will see a slide with a bar chart:
Apache POI PowerPoint Slide Example - Graphics2DDemo


⇒Apache POI Examples for PowerPoint Slides

⇒⇒FAQ for Apache POI (Poor Obfuscation Implementation)

2017-02-08, 1401👍, 0💬