c_shelswell Posted April 29, 2009 Share Posted April 29, 2009 Hi, Does anyone know of a decent script to convert HTML to PDF on the fly. I'd be great if it would work on a windows and linux box for the sake of testing. I've tried FPDF but it doesn't really get on well with css also dompdf but can't seem to get it to work at all. Perhaps i'm doing something wrong. If anyone has any suggestions that'd be great. I basically just need to create a tabular invoice for a user to download. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/ Share on other sites More sharing options...
ignace Posted April 29, 2009 Share Posted April 29, 2009 Have you tried http://sourceforge.net/projects/html2fpdf or http://www.google.com/custom?domains=www.phpclasses.org&q=html+2+pdf&sa=Search&sitesearch=www.phpclasses.org&client=pub-2951707118576741&forid=1&channel=5742870948&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23663399%3BGL%3A1%3BDIV%3A%23222222%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AA3C5CC%3BLBGC%3AA3C5CC%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A50%3BLW%3A256%3BL%3Ahttp%3A%2F%2Ffiles.phpclasses.org%2Fgraphics%2Fgooglesearch.jpg%3BS%3Ahttp%3A%2F%2Fwww.phpclasses.org%2Fsearch.html%3BFORID%3A1%3B&hl=en Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/#findComment-822002 Share on other sites More sharing options...
c_shelswell Posted April 29, 2009 Author Share Posted April 29, 2009 I actually just found this http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_installation which seems to work without any extra extensions Not perfect at html but it should do what i need i think. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/#findComment-822068 Share on other sites More sharing options...
Mchl Posted April 29, 2009 Share Posted April 29, 2009 I basically just need to create a tabular invoice for a user to download. I just created a FPDF script to print the invoice the way I like it (or the way the client wants it to be actually). I'm pretty sure this'll give better results than translating HTML layout to PDF Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/#findComment-822078 Share on other sites More sharing options...
c_shelswell Posted April 29, 2009 Author Share Posted April 29, 2009 I was struggling with tables in fpdf I got borders sorted. I think I need to copy an invoice that i already have. So the clients pages are all the same. Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/#findComment-822100 Share on other sites More sharing options...
Mchl Posted April 29, 2009 Share Posted April 29, 2009 Table with multicells script for FPDF is absolute must for invoices. Quote Link to comment https://forums.phpfreaks.com/topic/156141-html-page-to-pdf-with-php/#findComment-822138 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.