This simple article focuses on how to convert PowerPoint to TIFF using Java by following the detailed configuration steps to use the following code sample. You can use the following example in any Java configured environments in MS Windows, Linux or macOS to convert PPTX to TIFF in Java without any dependency on MS PowerPoint.
Steps to Convert PowerPoint to TIFF using Java
- Configure the application to install Aspose.Slides for Java from the Maven repository
- Initialize the Presentation class object to load the source presentation file from the disk
- Instantiate the TiffOptions class object and set the desired image options
- Set the image size and the DPI settings for desired TIFF image
- Convert the presentation to a TIFF in Java using the save method
The above steps convert the presentation to TIFF in Java whereby the process starts by loading the source presentation file using the Presentation class. Then we set the desired TIFF image DPI and size by using the TiffOptions class instance and finally save the presentation as a TIFF image on the disk using the save method.
Code to Convert PPTX to TIFF in Java
If you are even interested in converting PPT to TIFF in Java, you can use the above example for this conversion too. In order to further customize the output, the TiffOptions class exposes the setter methods for the properties like CompressionType, PixelFormat, ShowHiddenSlides and NotesCommentsLayouting. This application is able to seamlessly convert PPTX to TIFF without installing MS PowerPoint or any other third-party tool.
In this article, we learned to generate TIFF from PowerPoint in Java with the help of a simple API interface. If you are interested in creating the PowerPoint slide image, refer to the article on how to create PowerPoint slide image using Java.