Click to See Complete Forum and Search --> : how to convert html page to PDF using PHP
rasana
Jan 30th, 2007, 03:00 AM
Hello All,
Is there any function to convert html page to PDF format?
If yes then how to use dat function?
CornedBee
Jan 30th, 2007, 03:54 AM
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.
rasana
Jan 30th, 2007, 04:31 AM
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,
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.
CornedBee
Jan 30th, 2007, 07:51 AM
I don't get your problem.
superbovine
Jan 30th, 2007, 08:10 AM
Well if you really want to make it hard on yourself
Enjoy...
http://www.php.net/manual/en/ref.pdf.php
rasana
Feb 1st, 2007, 01:28 AM
Well if you really want to make it hard on yourself
Enjoy...
http://www.php.net/manual/en/ref.pdf.php
Hi,
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.
<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>
So, when I click on "Generate PDF " button this page should be converted in PDF format.
kows
Feb 1st, 2007, 01:39 AM
the original link that cornedbee posted, this one (http://www.digitaljunkies.ca/dompdf/), does exactly what you want. i'm not sure why you overlooked it before.
superbovine
Feb 1st, 2007, 05:39 PM
the original link that cornedbee posted, this one (http://www.digitaljunkies.ca/dompdf/), does exactly what you want. i'm not sure why you overlooked it before.
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.