Convert pdf from HTML (html is is string)

Hi I want to convert html string to pdf. what the best way to convert it
htmlString is like “

Hello

@Vivekworksimpli

Please check the code examples in the following article to achieve your requirement.
Convert HTML to PDF | C#

Hi Tahir, just a question is aspose.html have different license for aspose.total. we have aspose.total valid license, will that not work for aspose.html (convert html to pdf)

image.png (15 KB)

@Vivekworksimpli

Aspose.Total license works for Aspose.HTML. Please make sure that you are setting it correctly. For more detail, please read the following article.
Applying a License