Spire.doc for Java is a professional Java Word component that allows developers to easily integrate Word document creation, reading, editing, conversion, and printing into their Java applications.
This article describes how to convert Word to Tiff using Spire.doc for Java. You can download the latest version of the test.
The Word document for the test is as follows:
import com.spire.doc.*; public class WordToTiff { public static void main(String[] args) { Document doc = new Document(); doc.loadFromFile("inputfile.docx"); doc.saveToTiff("ToTiff.tiff"); }}Copy the code
The output
Spire.doc for Java 4.6.2 has been released. This version supports converting Word to TIFF and fixes converting Word to PDF/ Image /XML. In addition, this update fixes the issue of adding companies incorrectly.
New features
Document doc = new Document(); doc.loadFromFile(inputPath); doc.saveToTiff(outputPath);
Copy the code
- Supports converting Word to Tiff