DEV Community

loading...

Pdf Converter

bseyhan profile image bseyhan ・1 min read

If you need a nice pdf convertor NuGet packages here is the good one. You can use with .net framework and .net core

Select.HtmlToPdf.NetCore

Sample code:

HtmlToPdf converter = new HtmlToPdf();
PdfDocument doc = converter.ConvertUrl(url);
doc.Save("Book" + "_" + page + ".pdf");
doc.Close();
Enter fullscreen mode Exit fullscreen mode

Happy coding days

Discussion (0)

pic
Editor guide