This crisp article focuses on how to convert MPP to TIFF in Java. It includes all the configuration details, a step-by-step program flow, and a runnable example code to exhibit the capability. You can easily develop an application to transform MPP file to TIFF using Java with the help of simple API calls.
Steps to Convert MPP to TIFF using Java
- Set up the development environment to include Aspose.Tasks for Java using the repository manager to convert MPP to TIFF using Java
- Load an existing MPP file using the Project class object to change MPP to TIFF using Java
- Set the output TIFF file options using the ImageSaveOptions class object
- Save MPP as TIFF in Java using the save method
The aforementioned steps represent the complete configuration details and a stepwise process to convert MS Project to TIFF using Java. The Project class instance is used to access the source MPP file from the disk and then the ImageSaveOptions class instance is used to set the output TIFF file characteristics. It is pertinent to mention that the TIFFOptions class instance is not compulsory and can be excluded by using the default settings for the output TIFF file.
Code to Save MPP as TIFF in Java
The above example offers the code to convert MPP to TIFF using Java with the help of a simple API interface. The Project class instance which is used to access the source file from the disk also exposes the constructor overloads to load the MPP file as a stream from the sources like the Web or Databases. The ImageSaveOptions class instance can be used to customize the output TIFF file by using setter methods like setEncoding, setIncludeHeaders, setDataCategory, and setTextDelimiter to name a few.
In this article, we have learned the process to change MPP to TIFF using Java. If you want to learn about the process of converting an MPP to an SVG file, refer to the article on convert MPP to PNG in Java.