I have uploaded sample code along with pdf and html files and all css and html required. Please have a look and let us know whats going wrong with our approach.
My sample code
static void Main(string[] args)
{
var tempPath = System.IO.Path.GetFullPath("../../ExportPdfFiles/Temp/");
var exportCSSPath = System.IO.Path.GetFullPath("../../ExportPdfFiles/");
var htmlPath = tempPath + "TestPdf.html";
var load = new HtmlLoadOptions(exportCSSPath);
// load source HTML file
Document pdfDoc = new Document(htmlPath, load);
// save PDF document
pdfDoc.Save(tempPath + "/ResultantHTML.pdf");
}
TestConsoleApp.zip (306.0 KB)