ExampleFiles.zip (44.5 KB)
Hello, Aspose team.
We’ve found this behavior while conversion into Pdf and HtmlFixed.
The table width set to “prefered 35%”. WORD stretches the width of the table to content (about 55%). But the table in the converted Pdf isn’t stretched.
used code:
var fileData = File.ReadAllBytes("TableWidthBug.docx");
using (var stream = new MemoryStream(fileData))
{
var document = new Document(stream, loadOptions);
document.AcceptAllRevisions();
using (var resultStream = File.Create("c:\\temp\\TableWidthBug.pdf"))
{
//var saveOptions = new HtmlFixedSaveOptions();
//saveOptions.ResourcesFolder = "c:\\temp\\Images";
var saveOptions = new PdfSaveOptions();
document.Save(resultStream, saveOptions);
}
}