I want to convert PDF from my html file, So I have html template so I can update data in that template and I want to convert it in PDF so please let me best way for this.
I have used iTextSharp tool and write a code for this and I am able covert PDf for this tool but problem is when see the PDf its formateing not getting what I am expecting, that is different from html.
amitpatel.it
Star
8070 Points
1880 Posts
Convert HTML to PDF
Sep 08, 2011 06:16 AM|LINK
Hi Team,
I want to convert PDF from my html file, So I have html template so I can update data in that template and I want to convert it in PDF so please let me best way for this.
I have used iTextSharp tool and write a code for this and I am able covert PDf for this tool but problem is when see the PDf its formateing not getting what I am expecting, that is different from html.
http://amitpatelit.wordpress.com/2011/09/02/html-to-pdf-converter/
So can you please sugest me any other tool or in this above code I have to made few correction.
You are answer will be really appreciated.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
amitpatel.it
Star
8070 Points
1880 Posts
Re: Convert HTML to PDF
Sep 08, 2011 08:10 AM|LINK
Is there any one have worked on this kind of problem
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
amitpatel.it
Star
8070 Points
1880 Posts
Re: Convert HTML to PDF
Sep 08, 2011 12:33 PM|LINK
This is very urgent for me, please give any hints on this.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
venkatanaras...
Member
172 Points
69 Posts
Re: Convert HTML to PDF
Nov 23, 2011 04:32 AM|LINK
HI,
Once check this links 4 U!
http://pdfcrowd.com/
http://www.pdfonfly.com/
http://www.htm2pdf.co.uk/
Venkat Goud.
Mark as Answer if you feel so.
Joseph Barne...
Member
18 Points
9 Posts
Re: Convert HTML to PDF
Apr 08, 2013 04:39 AM|LINK
Hello,
You may want to look at Elerium HTML to PDF component. It allows to convert html string/file/url to PDF including styles, but it is not free.
wiikend
Member
42 Points
49 Posts
Re: Convert HTML to PDF
Apr 08, 2013 07:50 AM|LINK
Hey
I use "Rotativa" to convert my website to pdf.
http://nuget.org/packages/Rotativa/
Import that Rotativa stuff to your project.
If u use MVC you can create a new Method in Controller
public ActionResult GeneratePDF() { return new ActionAsPdf("PDF") { FileName = "YOUR-FILE-" + DateTime.Now.ToShortDateString().ToString() + ".pdf" }; }Good Luck!!
shivani.gupt...
Participant
888 Points
328 Posts
Re: Convert HTML to PDF
Apr 08, 2013 10:12 AM|LINK
http://www.mikesdotnetting.com/Article/86/iTextSharp-Introducing-Tables
Check this site
My Blog: http://shivaniaspnet.blogspot.in
akhleshchauh...
Participant
1094 Points
237 Posts
Re: Convert HTML to PDF
May 23, 2013 10:30 AM|LINK
try this
http://forums.asp.net/t/1409856.aspx
bheemsen.net
Member
71 Points
53 Posts
Re: Convert HTML to PDF
May 27, 2013 04:17 AM|LINK
Try destination pdf library to convert HTML to PDF
<div id="project_logo">http://destinationpdf.codeplex.com/</div> <div></div>jats_ptl
Participant
971 Points
243 Posts
Re: Convert HTML to PDF
May 28, 2013 11:34 PM|LINK
Hi Amit,
After googling I found that there are lots of option to achieve your query usning .Net.
Please have a look at the link below with working examples.
http://www.codeproject.com/Articles/7089/Generate-PDF-documents-from-a-HTML-page-using-ASP
http://hamang.net/2008/08/14/html-to-pdf-in-net/
http://stackoverflow.com/questions/4677594/convert-html-to-pdf-any-library-for-asp-net
Hope this will help you.
Thanks,
jatin
Please "MARK AS ANSWER" if found helpful.