A practical walkthrough of using JBang and Apache POI to batch-convert PowerPoint (PPTX) slides to high-DPI PNG images. The script avoids Maven/Gradle project overhead by using JBang's dependency directives, leverages Apache POI's XMLSlideShow API to parse slides, and uses Java 2D Graphics2D with antialiasing and bicubic interpolation for quality rendering. The full script is available on GitHub.
Table of contents
1. Dependency Management2. Initializing the SlideShow3. Scaling and Precision Math4. Configuring the Graphics Context5. Execution and OutputSort: