How to convert and download html(url) to pdf without third part control using C#?
Loading
How to convert and download html(url) to pdf without third part control using C#?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Sep 20, 2024, 8:41 AM
Hello,
You can do using below code,
Jayraj ChhayaPosted Sep 20, 2024, 6:50 AM
To convert HTML from a URL to a PDF in C# without using third-party controls, you can utilize the built-in capabilities of the .NET framework along with the
System.NetandSystem.IOnamespaces. Below is a simple approach using theWebClientclass to fetch the HTML content and thePdfSharplibrary, which is included in .NET Core.