Free Support Forum - aspose.com

HTML columns squashed on conversion when using width %

When converting from HTML to either TIFF or PDF the table columns are getting squashed and the text gets overlaid. Removing the width:95% style seems to fix the issue on the example document. Can you please look into why it is not converting these correctly. The HTML documents open ok in Internet Explorer and also in MS Word.HtmlConversionIssue.zip (110.0 KB)

@philipcrossland

We have tested the scenario using the latest version of Aspose.Words for .NET 20.3 and have not found the shared issue. So, please use Aspose.Words for .NET 20.3.

Hi, apologies, this has been resolved in Aspose.Words but is still an issue in Aspose.PDF. I have changed the product family associated with this

@philipcrossland

We were able to notice the issue in our environment while using Aspose.PDF for .NET 20.3 and following code snippet:

var objLoadOptions = new Aspose.Pdf.HtmlLoadOptions(dataDir);
// Set Page Margins
objLoadOptions.PageInfo.Margin = new MarginInfo(0, 0, 0, 0);
// You can also set Page Height/Widht
objLoadOptions.PageInfo.Height = PageSize.PageLetter.Width;
objLoadOptions.PageInfo.Width = PageSize.PageLetter.Height;
var doc = new Aspose.Pdf.Document(dataDir + "DOWNLOAD pid.HTM", objLoadOptions);
doc.Save(dataDir + "out20.3.pdf");

Therefore, have logged it as PDFNET-47880 in our issue tracking system. We will further look into details of it and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.