Relorer / HTMLToQPDF

HTMLToQPDF is an extension for QuestPDF that allows to generate PDF from HTML
MIT License
80 stars 26 forks source link

How to apply html formatted string? #21

Open raysefo opened 1 week ago

raysefo commented 1 week ago

Hi, I installed QuestPDF and HTML Agility Pack. How can I apply Notes? It says can not resolve SetHtml.

string Notes = "<b>Terms and conditions apply.</b>"

container.Row(row =>
{
    row.RelativeItem(350).Background(Colors.Grey.Lighten3).Padding(5).Column(column =>
    {
        column.Spacing(2);
        column.Item().Text("Notlar / Notes:").Bold();
        column.Item().SetHtml(Notes);
    });

 });
raysefo commented 1 week ago

Works this way,

column.Item().HTML(handler =>
{
    handler.SetHtml(Notes);
});