Link to home
Start Free TrialLog in
Avatar of designersx
designersx

asked on

How to convert html page into pdf file

How to convert html page into pdf file and after that how the pdf can be printed.
Avatar of abel
abel
Flag of Netherlands image

there are many. Google gives, amongst many others, this: http://html2pdf.seven49.net/Web/.

To print a PDF hit Ctrl-P and then Enter after you opened the PDF.
http://www.clicktoconvert.com/pages/convert_html_to_pdf/index.htm

and there is a print icon on the top, so you can easily print from that.
Avatar of designersx
designersx

ASKER

these are like softwares, can't we have any code of doing this?
http://www.cutepdf.com/Products/CutePDF/writer.asp

Download the cute pdf writer . Set the default printer to cute pdf.

Just print (ctrl + p)

Very easy .....
> these are like softwares, can't we have any code of doing this?

you can check some open source packages and use their code, or use XSL-FO with XHTML (but I believe that is already explained to you by qwerty). Writing a html2pdf converter from scratch, instead of using one of the many ready-to-use packages and programs is of course possible, but be prepared to spend a couple of months on doing so, depending of your level of expertise.
respected Sir,

thanks for the links that u gave but sir i wanted to ask isn't there any simple code in php to convert html page to pdf page.
ASKER CERTIFIED SOLUTION
Avatar of ping_it
ping_it
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
please review the attachment to see what i want to do.


yogesh
print-snapshot.doc
Yogesh, that's quite a lot you ask for 50 pts... Thought you were on a very easy question. Anyway, exactly what you want can be done by applying one or more of the solutions that have been posted here. The last few were PHP solutions. The print button will be on the page, as is normal when you open as PDF. Use the directions on the PHP html2pdf pages to see how you have to set the headers. Use <a href="myphppdf.php" target="_blank"> to open in a new window.

(Obviously, it is not possible to have the document automatically printed from an HTML page, but that's never possible anyway, not even with just HTML)
had experts-exchange changed its view? this is the snapshot here or this is because of my screen resolution.

thanks for the above urls. i have increased the points.
thanks
view-snapshot.doc
Avatar of gr8gonzo
I have to agree - you're asking for a lot.

Experts Exchange is not a place to hire programmers or get programmers to do entire projects for you for points. Remember that points don't really give any of us actual money - they really only give us a bit of a reputation in this community. People are here to help for free, really, so asking someone to do a large project is probably not going to work out.

EE is here to let you ask specific questions when you are stumped about something specific. If you want an PDF-to-HTML solution that is in PHP, there are not that many out there, but ping_it gave you one that works. That should be a valid answer to your question. I'm not trying to be mean or rude - I'm just saying that you should consider what you're asking and what answers have been valid so far.
by the way sir i think i have already solved this query. i was not asking u a question regarding this if u see in my previous comment. i was giving u thanks for the help sir. was i wrong thanking all of u guys?
> was i wrong thanking all of u guys?

no, of course not, we're here to help. We misinterpreted your comment as a new request. Normally 50ot 100pt questions are about links or very quick-to-resolve problems. We thought you wanted to elaborate on it.

Glad we have been of some help and apologies for misunderstanding your comment.

-- Abel --