Convert html to tiff - format damaged

The boxed area is truncating.
using this code

Dim imagefilename As String
Dim options As New Aspose.Words.LoadOptions()
options.LoadFormat = Aspose.Words.LoadFormat.Html
Dim doc As New Aspose.Words.Document(file, options)
Dim saveOptions As New Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Tiff)
saveOptions.PageIndex = 0
saveOptions.PageCount = doc.PageCount
saveOptions.PrettyFormat = True
saveOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.Ccitt4
saveOptions.Resolution = 200
imagefilename = Program.imagepath + System.IO.Path.GetFileNameWithoutExtension(file) + Guid.NewGuid().ToString + ".TIFF"

doc.Save(imagefilename, saveOptions)
Program.NoOfPages = doc.PageCount

Hi,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.8.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-12392 . Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Moreover, in this case, you should just call Document.UpdateTableLayout method before rendering to PDF/TIFF format; only in rare cases where you confirmed that tables appear incorrect in the output document. I hope, calling this method will help to correct the output. Here is how you may use it:

Document doc = new Document(“C:\temp\in.htm”);
doc.UpdateTableLayout();
doc.Save(“C:\Temp\out.tiff”);

Best regards,

calling this method does not make a difference.


Thanks

Hi,


Thanks for your inquiry. We will inform you via this thread as soon as this issue is resolved. We apologize for any inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-12392) have been fixed in this Aspose.Words for .NET 23.8 update also available on NuGet.