![]() |
Our Platinum Sponsors: |
|
#1
|
|||
|
|||
|
Hi peeps,
html2pdf in PHP - what are the cool kids using these days? Cheers |
|
#2
|
|||
|
|||
|
Nobody has done html2pdf with PHP lately?
I bet it's one line in RoR
|
|
#3
|
||||
|
||||
|
Quote:
Code:
<cfdocument format="PDF">
<h1>UR HTML GOES HERE</h1>
</cfdocument>
__________________
buy my monaro! |
|
#4
|
||||
|
||||
|
Quote:
Have a look at tcpdf for PHP - it has a basic HTML parser. |
|
#5
|
||||
|
||||
|
Code:
<?
require('html2fpdf.php');
$pdf=new HTML2FPDF();
$pdf->AddPage();
$fp = fopen("sample.html","r");
$strContent = fread($fp, filesize("sample.html"));
fclose($fp);
$pdf->WriteHTML($strContent);
$pdf->Output("sample.pdf");
echo "PDF file is generated successfully!";
?>
__________________
TN3 Productions ⇑ 13yrs of Delivering Top Rankings ⇑ SEO & Conversion Optimisation | Internet Marketing & Adwords Management | SEO Perth Web Hosting Companies | Web Hosting Perth |
|
#6
|
|||
|
|||
|
Thanks, I'll look into them both.
|
|
#7
|
|||
|
|||
|
I use domfpdf which is now on google code, and for CodeIgniter - handles MOST css elements, some things you need to gear it back to basic HTML, but very nice otherwise
|
|
#8
|
||||
|
||||
|
I did a bunch of html2pdf for a client year before last, autogenerating reciepts for online payments. what you after? I'd be happy to dig it up and pass it on if it's suitable.
__________________
Dash Digital - Inductor Development & Digital Manager |
|
#9
|
|||
|
|||
|
This should be fairly straightforward - it's an online application form that needs to be delivered to the client by email in a ready to print format for offline processing and storage.
Their current system has the client downloading an ever increasing CSV file before manually performing a mail merge on the latest entries. It takes the client a whole couple of minutes but it's just a lame way of doing things. The project hasn't started yet but I'd love to see some existing code, if only to get an idea of another way of doing things. I'll PM you my email address, Steve. |
|
#10
|
||||
|
||||
|
I have used dompdf quite a bit and recommend it, it's very easy to use and the results are impressive
__________________
Templeman Twells |
![]() |
| Thread Tools | |
| Display Modes | |
|
|