Word to TIFF conversion with image settings

Hi,
I need to convert Word files into TIFF format with specific settings:

  • Resolution: 300 DPI
  • Compression: LZW
  • Greyscale
  • Removal of blank pages

Could you please provide the code for achieving this?

Best regards
Nicolas

@NHolleran You can use following code:

Document doc = new Document("input.docx");

doc.RemoveBlankPages();

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.TiffCompression = TiffCompression.Lzw;
options.Resolution = 300;
options.ImageColorMode = ImageColorMode.Grayscale;

doc.Save("output.tiff", options);