View Single Post
  #2 (permalink)  
Old December 12th, 2013, 05:02 AM
BrendaBessi BrendaBessi is offline
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Convert html to pdf file by using asp.net in c#

Here is a simple and straightforward way to convert html to pdf file in .NET:
Code:
// Convert HTML document to a PDF document.
DocumentModel.Load("Document.html", LoadOptions.HtmlDefault).Save("Document.pdf", SaveOptions.PdfDefault);
The code uses this C# Word component.