How to Convert DOCX to TIFF using C#

In this step-by-step tutorial, we will understand how to convert DOCX to TIFF using C#. We can easily export DOCX to TIFF in C# by following the steps and code snippet below. The conversion can be performed in any operating system like MS Windows, Linux, or macOS where .NET framework is installed.

Steps to Convert DOCX to TIFF using C#

  1. Configure Aspose.Words library from NuGet package manager tool
  2. Create an instance of Document class
  3. Set different options like compression, color mode, for the output TIFF image
  4. Save the DOCX document as TIFF image file

In these steps, the Document class object is initiated to load the input DOCX file. Then specify different rendering properties like image compression, image color mode, resolution, etc. to control the quality of output image. Finally, the output image is saved with TIFF file extension as per your requirements.

Code to Export DOCX to TIFF in C#

In this sample code, the source file is loaded and SaveFormat is specified to create the TIFF file. You can control different image rendering properties including image brightness, contrast, or resolution based on your requirements. You can also modify this code to create a greyscale or colored image using C# in your applications.

In this article, we have focused on how to generate TIFF from DOCX using C#. However, if you want to add image in Word document using C#, refer to the article on how to add image in Word document using C#.

 English