Answered by:
free html to pdf

Question
-
User1408399351 posted
how to do html to pdf conversion using asp.net for free
Wednesday, February 23, 2011 7:07 AM
Answers
-
User-1360095595 posted
I've heard people talk about iTextSharp: http://sourceforge.net/projects/itextsharp/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, February 23, 2011 8:58 AM
All replies
-
User-1360095595 posted
I've heard people talk about iTextSharp: http://sourceforge.net/projects/itextsharp/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, February 23, 2011 8:58 AM -
User1408399351 posted
but this doesnot work if there are nested tables on html page. u need a paid version for that.but i require somthng free.
Wednesday, February 23, 2011 11:41 PM -
User-547121016 posted
hi
itextsharp support limited styles and html elements.so you have to move another methods. go to www.esnips.com and serch for iText in Action. you can download a e book.it my usefull to you.
and another one, you can try PDF Templates method. that means you can fill the paramerter to existing pdf files
see my blog.
Thursday, February 24, 2011 12:24 AM -
User-547121016 posted
see this link
http://mycodingerrors.blogspot.com/2011/01/formating-issues-in-html-to-pdf-using.html
Thursday, February 24, 2011 12:25 AM -
User-1199946673 posted
but this doesnot work if there are nested tables on html page. u need a paid version for that.but i require somthng free.
Instead of using the iTextSharp HTML parser, which is limited, you can also use another approach. Make a screenshot of the webpage and ans past the image into iTextSharp. That way, your html can be as complex as you want. To make a screenshot, read:
http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export-webpage-as-image-in.html
Thursday, February 24, 2011 1:41 PM -
User-547121016 posted
hi hans_v
great post.
Thursday, February 24, 2011 9:57 PM -
User1408399351 posted
is der anyother things to make pdf you are familiar with.itextsharp cannot covnert nested tables html to pdf properly
Friday, February 25, 2011 12:49 AM -
User-547121016 posted
did you try existing PDF method.
Friday, February 25, 2011 12:50 AM -
User1408399351 posted
existing mens itesxtsharp???
Friday, February 25, 2011 1:28 AM -
User-547121016 posted
check this article
http://coolwebdeveloper.com/2008/10/how-to-use-itextsharp-net-pdf-library-to-insert-text-and-image-in-an-existing-pdf-form-template/
Friday, February 25, 2011 2:24 AM -
User1408399351 posted
basically what i want is to convet a html page into pdf. want to build aconsole app that will do this or a web app. html page like yahoo.com,etc
Friday, February 25, 2011 2:32 AM -
User-1199946673 posted
basically what i want is to convet a html page into pdfAnd basicly what I sais. Make a screenshot of your html and paste it in a pdf using iTextSharp. With a little trial and error you'll have a perfect result....
Friday, February 25, 2011 3:33 AM -
User1408399351 posted
but if i ahve webpage with more than 1 page then how?
Friday, February 25, 2011 3:38 AM -
User-547121016 posted
give a more explanation about your requirement
Friday, February 25, 2011 3:52 AM -
User1408399351 posted
suppose i want to convert website with 3 pages to one pdf
Friday, February 25, 2011 4:14 AM -
User-1199946673 posted
suppose i want to convert website with 3 pages to one pdf
Then I think you first need to ask yourself the question what if you have a long webpage that doesn't fit onto 1 pdf page. do you want the part that doesn't fit onto the first page be transferred to the next page, regardless of where the page breaks? Your problem is nested tables. But what if the break is in the middle of a table, how do you want to deal with that?
Friday, February 25, 2011 4:34 AM -
User1408399351 posted
i want something that makes 3 pdf pagse if there is 3 pages of html as simple as that
Friday, February 25, 2011 4:56 AM -
User-1199946673 posted
Good luck
Friday, February 25, 2011 6:16 AM