Here Mudassar Khan has explained with an example, how to export HTML string to PDF file in ASP.Net Core Razor Pages.
The data from database will be populated in HTML Table using Entity Framework in ASP.Net Core Razor Pages.
Finally, the HTML Table will be exported and downloaded as PDF file using itext7.pdfhtml library in ASP.Net Core Razor Pages.
↧