In various scenarios, such as printing, fax, etc., PowerPoint to TIFF conversion is used. To automate this conversion from within a web or desktop application, this article covers how to convert PowerPoint PPTX/PPT presentations to TIFF using Java. Furthermore, it also shows how to customize the size and pixel format of the resultant TIFF images.
- Java PowerPoint to TIFF Converter
- Convert PowerPoint to TIFF
- Convert PowerPoint to TIFF with Custom Image Size
- PPTX to TIFF with Custom Pixel Format
TIP: You may want to check out Aspose FREE online PowerPoint to Poster Converter.
Java PowerPoint to TIFF Converter
In order to convert the presentations to TIFF images, we will use Aspose.Slides for Java. The said API lets you create, manipulate and convert presentation documents from within the Java applications. You can either download the API or install it using the following Maven configurations.
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://repository.aspose.com/repo/</url>
</repository>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>21.7</version>
<classifier>jdk16</classifier>
</dependency>
Convert PowerPoint PPTX to TIFF using Java
The following are the steps to convert a PowerPoint PPTX/PPT to TIFF using Java.
- First, load the PowerPoint presentation using Presentation class.
- Then, convert PPTX to TIFF using Presentation.save(String, SaveFormat.Tiff) method.
The following code sample shows how to convert a PowerPoint PPTX to TIFF.
Java Convert PowerPoint to TIFF with Custom Image Size
Aspose.Slides for Java also allows you to customize the size of the resultant image in PowerPoint to TIFF conversion. The following are the steps to achieve this.
- First, load the PowerPoint presentation using Presentation class.
- Create an instance of TiffOptions class.
- Set image size using TiffOptions.setImageSize() method.
- Finally, convert PPTX to TIFF using Presentation.save(String, SaveFormat.Tiff) method.
The following code sample shows how to convert PPTX to TIFF with custom image size.
Convert PowerPoint to TIFF with Custom Pixel Format
The following are the steps to customize the pixel format in PPTX to TIFF conversion using Java.
- First, load the PowerPoint presentation using Presentation class.
- Create an instance of TiffOptions class.
- Set pixel format to desired format using TiffOptions.setPixelFormat() method.
- Finally, convert PPTX to TIFF using Presentation.save(String, SaveFormat.Tiff) method.
The following code sample shows how to customize pixel format in PPTX to TIFF conversion.
Get a Free API License
You can use Aspose.Slides for Java without evaluation limitations by requesting a temporary license.
Conclusion
In this article, you have seen how to convert PowerPoint PPTX/PPT to TIFF using Java. Furthermore, the step-by-step guide and code samples have shown how to customize the size and pixel format of the resultant TIFF images. You can visit the documentation to explore other features of Aspose.Slides for Java. In addition, you can feel free to let us know about your queries via our forum.