Hello!
I have HTML that I am attempting to convert to Word and PDF using Aspose.Words.NET v17.10.0.
When Paragraph tags have inline styles (specifically “margin”, “margin-top”, and “margin-bottom”), they are not converted. If I have an embedded style sheet that references all Paragraph tags, it does work. But if I try to use a class to style only some of the Paragraph tags, it again does not work.
Here is an example that does not work:
1. Open Meeting/Roll Call-Determination of Quorum
Inline styles on DIV tags also don’t seem to be implemented.
Here is an example of my code:
using (var loadMs = new System.IO.MemoryStream(HtmlData))
{
var lo = new Aspose.Words.LoadOptions();
lo.LoadFormat = Aspose.Words.LoadFormat.Html;
var doc = new Aspose.Words.Document(loadMs, lo);
using (var saveMs = new System.IO.MemoryStream())
{
doc.Save(saveMs, Aspose.Words.SaveFormat.Pdf);
PdfData = saveMs.ToArray();
}
}
Any help is appreciated!
–Jesse