I installed version 4.8.14 through the nuGet package manager in Visual Studio and all seems ok.
However, I'm not quite sure how to convert a html string to a pdf document anymore.
Normally I would just use the following code, however LoadFromHTML is no longer a method that is available on the PdfDocument.
- Code: Select all
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
Thread thread = new Thread(() =>
{
doc.LoadFromHTML(html, false, true, true);
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
//Save pdf file.
doc.SaveToFile("sample.pdf");
doc.Close();
Is there a new way to do this or am I missing something?
Is this now a "paid for" method only perhaps?