How to Convert DOCX to TIFF using Java

This topic explains how to convert DOCX to TIFF using Java without Interop. Tiff files are widely used in applications and this topic will enable you to export DOCX to TIFF using Java with no reliance on Microsoft Word or Interop in any of the operating system like macOS, Ubuntu and Windows using a few lines of code.

Steps to Convert DOCX to TIFF using Java

  1. Include Aspose.Words JAR file using Maven repository
  2. Instantiate the Document Class object to load the source DOCX
  3. Instantiate ImageSaveOptions Class object to set image save options
  4. Create TIFF from DOCX using Java by Save method

In the following simple steps, we will load the source DOCX file from disk using Document Class instance. Then using ImageSaveOptions Class object, we will set different properties of desired TIFF file including compression and color mode. Finally, using save method, we will generate TIFF from DOCX in Java.

Code to Export DOCX to TIFF using Java

In the above sample code, the source DOCX file is loaded and SaveFormat enumerator is specified to create the TIFF file. You are allowed to set different image rendering properties including color mode, contrast, image brightness and resolution as per your requirements.

In the above tutorial, we learned how simple it is in Java to generate TIFF from DOCX with no dependence on Microsoft Words. However, in previous topic, we explored you need to update an existing Word file, refer to the article on how to generate Word Document using Java without Interop.

 English