Related blog post: How to Convert PowerPoint Presentations to JPG/PNG Images in Java
Last active
February 13, 2022 10:17
-
-
Save GroupDocsGists/0e4392fdb047439a38f81bb75f563351 to your computer and use it in GitHub Desktop.
Convert Presentations to Images in Java | PPT/PPTX to JPG & PNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert PPT, PPTX Presentations to JPG Images in Java | |
Converter converter = new Converter("path/presentation.pptx"); | |
ImageConvertOptions options = new ImageConvertOptions(); | |
options.setFormat(ImageFileType.Jpg); | |
options.setPageNumber(1); | |
converter.convert("path/ppt-to-image.jpg", options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert PPT, PPTX Presentations to PNG Images in Java | |
Converter converter = new Converter("path/presentation.pptx"); | |
ImageConvertOptions options = new ImageConvertOptions(); | |
options.setFormat(ImageFileType.Png); | |
options.setPagesCount(1); | |
converter.convert("path/ppt-to-image.png", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment