Click here to Skip to main content
13,087,235 members (55,089 online)
Rate this:
Please Sign up or sign in to vote.
See more:
please help me to make pdf file from the html page
Posted 5-Jun-11 18:11pm
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
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[^]
Rate this: bad
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.

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 |
Web02 | 2.8.170813.1 | Last Updated 20 Aug 2015
Copyright © CodeProject, 1999-2017
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