Hello,
We are trying to convert Word Document containing colored text to CCITT4 Tif Images (Black & White) and noticed some colored text missing.
Attached Sample "Hello.doc" and resulting image "HelloImage0.tif".
Here is the Sample Code we are using:
using System;
using System.Collections.Generic;
using System.Text;
using Aspose.Words;
using Aspose.Words.Rendering;
namespace WordTester
{
class Program
{
static void Main(string[] args)
{
Aspose.Words.License licenseWords = new Aspose.Words.License();
licenseWords.SetLicense("Aspose.Words.lic");
ImageOptions imgOptions = new ImageOptions();
imgOptions.Resolution = (float)200;
imgOptions.TiffCompression = TiffCompression.Ccitt4;
Document doc = new Document("Hello.doc");
for (int i = 0; i < doc.PageCount; i++)
doc.SaveToImage(i, 1, "HelloImage" + i.ToString() + ".tif", imgOptions);
}
}
}
Please let us know if we are missing something in code and/or if there is a method to set a threshold level to show all colors.
We need to display all text on CCITT4 Tif Images (Black & White).
We hope to hear from you soon.
Thank You!