![]() |
how to convert html output to pdf
hi,
I need to make a small invoice system. Already have most of the back end done. And the system needs to let user insert their own HTML template for the invoice generation. Which finally converts the output HMTL to a PDF and send it off as attachment via email. I already have everything else done, but not the HTML to PDF part. I'm pretty much stuck with basic scripting languages such as php and perl. Does anyone know how to properly convert HTML to PDF in php (or if must, perl)? regards, vanisri |
Re: how to convert html output to pdf
Well, I guess you cannot convert HTML to PDF through PHP, but what you can do is create PDF with PHP/Perl.
|
Re: how to convert html output to pdf
can u provide code for creating pdf with php/perl
|
Re: how to convert html output to pdf
Download FPDF from http://www.fpdf.org/.
Example code Code: PHP
|
Re: how to convert html output to pdf
I have also had success with pdf-php (ezpdf). Sample code:
PHP Code:
|
| All times are GMT +5.5. The time now is 22:16. |