Does the library PDFSharp can - like iTextSharp - generate PDF files *take into account HTML formatting *? (bold (strong), spacing
I'll recommend you NReco.PdfGenerator because have free and paid license and its easy to install from nuget.
Main page: https://www.nrecosite.com/pdf_generator_net.aspx
Documentation: https://www.nrecosite.com/doc/NReco.PdfGenerator/
If you want create PDF from html file try:
String html = File.ReadAllText("main.html");
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
htmlToPdf.GeneratePdf(html, null, "C:/Users/Tmp/Desktop/mapa.pdf");