We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert word to tiff file


Does aspose word for .net support convert word to 8 bit depth tiff file?

Best Regard!

Hi there,

Thanks for your inquiry. Yes, Aspose.Words support the requested feature. Please use the TiffCompression as Lzw as shown below. LZW is a very common, loss less compression scheme resulting in smaller 8 bit files.

Document doc = new Document(MyDir + "Rendering.doc");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.TiffCompression = TiffCompression.Lzw;
options.PageIndex = 0;
options.PageCount = 1;
doc.Save(MyDir + "Rendering.SaveToTiffCompression Out.tiff", options);

Please read following documentation links for your kind reference.

Thank for your reply.i according to your code,the tiff file still 32 bit depth,i am using aspose for word 14.5.can you test it or offer me a sample?

Hi there,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, I have logged this feature request as WORDSNET-10307 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

Hi there,

for being patient.

is to update you that our development team has completed the
analysis of requested feature and has come to a conclusion that this feature has
been closed with ‘‘Won’t Fix’’ resolution.

For now
ImageSaveOptions.PixelFormat is taken in account, the output image tries
to keep that format. However pixel format of the output image may be changed by GDI+ while saving. The 8bpp is indexed pixel format, and GDI+ has some limitations when working with such format. Since you want to save to 8bpp grayscale image, unfortunately because of GDI+ limitations it is not possible.