|
-
Jan 30th, 2007, 04:00 AM
#1
Thread Starter
Lively Member
how to convert html page to PDF using PHP
Hello All,
Is there any function to convert html page to PDF format?
If yes then how to use dat function?
-
Jan 30th, 2007, 04:54 AM
#2
Re: how to convert html page to PDF using PHP
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 30th, 2007, 05:31 AM
#3
Thread Starter
Lively Member
Re: how to convert html page to PDF using PHP
 Originally Posted by CornedBee
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.
-
Jan 30th, 2007, 08:51 AM
#4
Re: how to convert html page to PDF using PHP
I don't get your problem.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 30th, 2007, 09:10 AM
#5
Hyperactive Member
Re: how to convert html page to PDF using PHP
Well if you really want to make it hard on yourself
Enjoy...
http://www.php.net/manual/en/ref.pdf.php
-
Feb 1st, 2007, 02:28 AM
#6
Thread Starter
Lively Member
Re: how to convert html page to PDF using PHP
 Originally Posted by superbovine
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 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>
So, when I click on "Generate PDF " button this page should be converted in PDF format.
-
Feb 1st, 2007, 02:39 AM
#7
Re: how to convert html page to PDF using PHP
the original link that cornedbee posted, this one, does exactly what you want. i'm not sure why you overlooked it before.
-
Feb 1st, 2007, 06:39 PM
#8
Hyperactive Member
Re: how to convert html page to PDF using PHP
 Originally Posted by kows
the original link that cornedbee posted, this one, 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.
Last edited by superbovine; Feb 1st, 2007 at 06:42 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|