Click here to Skip to main content
12,455,073 members (61,645 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
please help me to make pdf file from the html page
Posted 5-Jun-11 18:11pm
Comments
Easked 4-Dec-15 4:26am
   
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

There are many questions about this already. You can use the previous answers as reference. Have a look.

Convert ASP.NET web page to PDF[^]
Show HTML In PDF[^]
Please Help me Convert HTML to PDF[^]
Convert aspx page to PDF[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hope Generate PDF documents from a HTML page using ASP.NET[^] article from CP might help you.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 20 Aug 2015
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100