Hello,
Thanks for your inquiry.
Do you want to convert html code to PDF using our Spire.Doc? If so, below is the corresponding code for your reference..
- Code: Select all
Document document = new Document();
Section sec = document.AddSection();
sec.AddParagraph().AppendHTML("<p>This ia a paragraph.</p>");
document.SaveToFile("HtmlToPdf.pdf", FileFormat.PDF);
Or if I misunderstood, to help us better understand your issue, please provide more detailed information, such as your input file as well as your desired output. You could upload them here or send them to us (
support@e-iceblue.com) via email. Thanks in advance.
Sincerely,
Brian
E-iceblue support team