I'm trying to convert HTML code written in C# to a PDF but getting issues when trying to do so. I get an error that says cannot HTMLAgilityPack.HTMLDocument object to Api2PdfChromeHtmltoPDFRequest. Is there a way to do so with these 2 libraries, or any better solutions?
var html = String.Format(@"<!DOCTYPE html>
<html><h1> Hello world </h1> </html>");
var doc = new HtmlDocument();
doc.LoadHtml(html)
Api2Pdf.Api2PdfResult emailConversionResult = a2pClient.Chrome.HtmlToPdf(doc);