Render Project to Multipage TIFF
Contents
[
Hide
Show
]Aspose.Tasks for Java lets you render Gantt chart to multipage TIFFs.
The SaveFileFormat enumeration contains the available output options, including TIFF. The project can be rendered to TIFF with or without compression; supported compression schemes are RLE, CCITT3, CCITT4 and LZW.
Rendering to Multipage TIFF
The following code sample:
- Reads a project file.
- Sets the output file format.
- Applies compression and saves an image to disk.
- Removes compression and saves an image to disk.
1// Source file to be converted to TIFF
2String file = "RenderMe.mpp";
3Project project = new Project(file);
4//Save the project to TIFF
5project.save("RenderMe.tif", SaveFileFormat.TIFF);
6//Save the project with CCITT4 compression
7ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.TIFF);
8options.setTiffCompression(TiffCompression.Ccitt4);
9project.save("RenderMe_options.tif", options);
10options.setTiffCompression(TiffCompression.None);
11project.save("RenderMe_comp_none.tif", options);