Word document to single page tiff images with CCIT4 compression

Hi,
Is there any direct way to convert multi page document to single page tiff images.
I need to convert the document which is having color image also.

Regards
Anish

Hi Anish,

Thanks for your inquiry. Please note that when you use TiffCompression as Ccitt3 and Ccitt4, the output image will be black and white. Please use TiffCompression as Lzw, Rle to get a colored image. Please read following documentation links for your kind reference.
https://reference.aspose.com/words/net/aspose.words.saving/tiffcompression/
https://reference.aspose.com/words/net/aspose.words.saving/imagesaveoptions/

Please use the following code snippets to convert your document into Tiff.

Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.TiffCompression = TiffCompression.Lzw;
doc.Save(MyDir + "Out.tiff", options);
Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.TiffCompression = TiffCompression.Lzw;
for (int i = 0; i < doc.PageCount; i++)
{
    options.PageIndex = i;
    options.PageCount = 1;
    doc.Save(MyDir + "Out_" + i + "_.tif", options);
}

Hi,

Thanks for you reply.
But if we are using options.TiffCompression = TiffCompression.Lzw;
Then the size of the image get large.
If we are using options.TiffCompression = TiffCompression.Ccitt4;
Then size is small but the quality of the image is going.
Is there any way to fix this issue.

Please find the original file attached

Regards
Anish

Hi Anish,

Thanks for your inquiry. In your case, I suggest you please use ImageSaveOptions.Resolution and ImageSaveOptions.ImageBrightness to achieve your requirements as shown in following code snippet. Please read the members of ImageSaveOptions class from here:
https://reference.aspose.com/words/net/aspose.words.saving/imagesaveoptions/

Document doc = new Document(MyDir + "466408.docx");
ImageSaveOptions imgOptions = new ImageSaveOptions(SaveFormat.Tiff);
imgOptions.Resolution = 300;
imgOptions.TiffCompression = TiffCompression.Ccitt4;
imgOptions.ImageBrightness = .40f;
doc.Save(MyDir + "Out.tiff", imgOptions);

Hi Tahir Manzoor,

Now i can able to convert the doc more clearly.

but i have one more problem.

The original docx having some check box. But after conversion it is showing as radio buttons.

Can you please check the attached docx file after conversion to tiff.

Hi Anish,

Thanks for your inquiry. Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v13.4.0, I am unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v13.4.0 and let us know how it goes on your side. I hope, this will help.

I have attached the output Tiff file with this post for your kind reference.