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

Free Support Forum - aspose.com

How to specify Bits Per Pixel while converting Word to TIFF file?

Hi,

I am performing Word to TIFF file conversion in my application which works fine. Although the ImageSaveOptions.ImageColorMode property helps me to create Black & White, Grayscale and Colored TIFF files but I am not able to specify the Bits Per Pixel, especially while performing the colored conversion. This is causing issue in my application.

I wanted to find out if I can specify the Bits Per Pixel during Word to TIFF conversion. If not, then can you suggest any workaround for this scenario as this is critical to my application and I am short of time here.

Looking for an urgent response.

Regards,
Syed.

Hi
Syed,


Thanks for your inquiry. Sure, you can specify the color depth (bits per pixel) upon converting Word document to TIFF format by using the following code snippet:

Document doc = new
Document(@“c:\temp\in.docx”);

ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.Tiff);
saveOptions.PixelFormat = ImagePixelFormat.Format24BppRgb;

doc.Save(@“c:\temp\out.tiff”,
saveOptions);

Moreover, please visit the following API link for ImageSaveOptions.PixelFormat property:
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.saving.imagesaveoptions.pixelformat.html

I hope, this will help.

Best Regards,

Thank you, very much Awais.

I know this is not the right location but will it be possible for you to update me if a similar setting is available for converting Visio and Excel files to TIFF files?

Regards,
Syed.o

Hi
Syed


Thanks for your inquiry.
I think, you can convert Visio and Excel files in Tiff format but i am not sure about similar settings. For further details only appropriate forums can help you.

Please also view these links:

Excel to Tiff:
<a href="https://forum.aspose.com/t/127318

Visio to Tiff:
<a href="https://forum.aspose.com/t/4640</a> </div><div><br></div><div><br></div>