Thanks for your answer!
But we currently use Aspose pdf 6.8.0.
We don’t use the object Document but directly the Pdf object and customise it
The code look like this:
Pdf pdf = new Pdf();
pdf.HtmlInfo.ExternalResourcesBasePath = pageContent.CssFilePath;
Section section = pdf.Sections.Add();
section.PageInfo.Margin = GetMargin(90,50, 40, 40);
HeaderFooter header = new HeaderFooter(section);
header.Margin = GetMargin(20, 20, 0, 0);
HeaderFooter footer = new HeaderFooter(section);
footer.Margin = GetMargin(20, 20, 0, 0);
Text footerText = new Text(“Some text”) { IsHtmlTagSupported = false };
Text bodyText = new Text(“BodyHTMLContent”) { IsHtmlTagSupported = true };
Text headerText = new Text(“HeaderHltmContent”) { IsHtmlTagSupported = true };
header.Paragraphs.Add(headerText);
AddLine(header);
section.Paragraphs.Add(bodyText);
AddLine(footer);
footer.Paragraphs.Add(footerText);
section.IsLandscape = pageContent.IsLandscape;
section.OddFooter = footer;
section.EvenFooter = footer;
section.OddHeader = header;
section.EvenHeader = header;
using (FileStream st = File.Open(fullPathName, FileMode.Create, FileAccess.Write))
{
pdf.Save(st);
}
So, does this version support the child css?
Does your solution still work if we use that way to generate the pdf file?
thanks by advance!