Click here to Skip to main content
15,898,371 members

Comments by Easked (Top 2 by date)

Easked 9-Dec-15 4:20am View    
You cannot achieve this without some external library, .NET framework does not provide any means with which you can create a PDF file through C# code.
That is why I used an external Word library for .NET, it can directly convert input HTML to output PDF with C#.
Easked 4-Dec-15 4:26am View    
Here is an article about HTML to PDF conversion done in C#.
The article uses this Word processing component for .NET, it makes this task rather straightforward:

DocumentModel.Load("index.html", LoadOptions.HtmlDefault).Save("index.pdf", SaveOptions.PdfDefault);

You can also easily export that PDF file from ASP.NET website to the browser's client.