Hello All,
Is there any function to convert html page to PDF format?
If yes then how to use dat function?
Printable View
Hello All,
Is there any function to convert html page to PDF format?
If yes then how to use dat function?
Not a function, no. But there are libraries that do this.
http://www.t u f a t.com/s_html2ps_html2pdf.htm
http://www.digitaljunkies.ca/dompdf/
Edit: Oh dear, the profanity filter tries to kill the first domain ... remove the spaces.
Hi,Quote:
Originally Posted by CornedBee
I've gone through d websites u mentioned, but it provides pdf converter.
actually i'm working on project where I need to convert entry form into pdf format, so i'll have to code to convert html or php page to PDF format.
I don't get your problem.
Well if you really want to make it hard on yourself
Enjoy...
http://www.php.net/manual/en/ref.pdf.php
Hi,Quote:
Originally Posted by superbovine
I've seen http://www.php.net/manual/en/ref.pdf.php
but code which is provided there, creates PDF file.
I want html page to be converted in PDF format.
E.G.
So, when I click on "Generate PDF " button this page should be converted in PDF format.HTML Code:<html>
<body>
<table>
<tr>
<td>Name</td>
<td><input type="text" name="txtname" size=20 /></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="txtemail" size=20 /></td>
</tr>
<tr>
<td><input type="Button" name="genbutton" value="Generate PDF" /></td>
</tr>
</table>
</body>
</html>
the original link that cornedbee posted, this one, does exactly what you want. i'm not sure why you overlooked it before.
Quote:
Originally Posted by kows
Yeah I know, it is a full API with good documentation. Even if he used the php.net page, there is enough there to create his project.