XDoc.Converter
Features
Tech Specs
How-to C#
Pricing

C# Document Converter Library
C# Tiff Convert: How to convert MS Word document to Tiff image


C# Tiff Convert: How to convert MS Word document to Tiff image





By using our .NET document converter libraray package, C# users can choose to convert a single Word page to a Tiff image or convert the whole Word file to a Tiff file with multiple pages. On this page, we provide a piece of Visual C# demo code for converting Word document to Tiff file.


C# Sample: Converting Word File to Tiff Image



You may directly copy and paste this Word to Tiff conversion demo to your C# .NET program.

The following demo code will create an output .tif file with default resolution(96) and default compression(JPEG).

// Define input and output files path.
String inputFilePath = @"C:\input.docx";
String outputFilePath = @"C:\output.tif";

// Convert Word to Tiff.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_TIFF);


Converting Word File to Tiff Image with Settings(Compression and Resolution)



You may directly copy and paste this Word to Tiff conversion demo to your C# .NET program. The following demo code will create an output .tif file with resolution(192) and compression(Group4Fax).

//Define the document save setting options
DocumentSaveOption option = new DocumentSaveOption(FileType.DOC_TIFF);

//set the output tiff file compression
option.CompressionMode = ImageCompress.Group4Fax;

//set the output tiff file resolution
option.Resolution = 192;
DocumentConverter.ToDocument(@"C:\input.docx", @"C:\output.tif", option);