We use Aspose.Words to convert html files to images. We recently moved from version 17.3 to 18.10 and noticed the images are different between the two releases. I can provide a lot more detail but here is a code snippet that resembles the code we use:
var directory = args[0];
var sourceFileName = args[1];
using (var fileStream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream($"AsposeWordsTiffTest.TestFiles.{sourceFileName}"))
{
var asposeDocument = new Document(fileStream);
for (var i = 0; i < asposeDocument.PageCount; i++)
{
var saveOptions = new ImageSaveOptions(SaveFormat.Tiff)
{
PageIndex = i,
PageCount = 1,
Resolution = 200,
TiffCompression = TiffCompression.Ccitt4,
};
var file = Path.Combine(directory, $"{sourceFileName}_{i}.tif");
asposeDocument.Save(file, saveOptions);
}
}
I can send a VS solution and example html files that generate images that differ between the version if necessary. Thanks in advance.