cheechm Posted August 18, 2008 Share Posted August 18, 2008 Hi, Can anyone help me with creating a PDF? Literally I want this inside my PDF: Thanks $pdf text = "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\"> <tr><td colspan=\"20\">LHS Quote</td></tr> <tr><td colspan=\"4\">Quote#" . $qid . "</td><td colspan=\"8\" align=\"right\">Telephone Number: 07940909181</td><td colspan=\"8\" align=\"right\">Customer Name: Nick Rhodes</td></tr> <tr bgcolor=\"#CCC\"><td colspan=\"2\">Item ID</td><td colspan=\"2\">Quantity</td><td colspan=\"12\">Item</td><td colspan=\"2\">Each</td><td colspan=\"2\">Cost</td></tr><tr><td colspan=\"14\"></td><td colspan=\"4\" bgcolor=\"#CCC\">Subtotal</td><td colspan=\"2\" bgcolor=\"#CCC\">£$totalcost</td></tr> $discount $delivery <tr><td colspan=\"14\"></td><td colspan=\"4\">Total Ex. Vat</td><td colspan=\"2\">£$exvat</td></tr> <tr><td colspan=\"14\"></td><td colspan=\"4\">Vat @ 17.5%</td><td colspan=\"2\">£$incvat</td></tr> <tr><td colspan=\"14\"></td><td colspan=\"4\" bgcolor=\"#CCC\">Total</td><td colspan=\"2\" bgcolor=\"#CCC\">£$overall</td></tr> </table>"; Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/ Share on other sites More sharing options...
trq Posted August 18, 2008 Share Posted August 18, 2008 Take a look at the pdf extension. Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-619078 Share on other sites More sharing options...
cheechm Posted August 18, 2008 Author Share Posted August 18, 2008 It doesn't make too much sense. Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-619082 Share on other sites More sharing options...
Mchl Posted August 18, 2008 Share Posted August 18, 2008 It what sense it doesn't make much sense? Personally I prefer FPDF class. Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-619085 Share on other sites More sharing options...
cheechm Posted August 18, 2008 Author Share Posted August 18, 2008 I tried that. I also tried FCPDF.. It just outputs the HTML rather than the actual text. Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-619088 Share on other sites More sharing options...
cheechm Posted August 18, 2008 Author Share Posted August 18, 2008 Still mythed... Any more help? Thanks Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-619636 Share on other sites More sharing options...
cheechm Posted August 19, 2008 Author Share Posted August 19, 2008 Bump! Link to comment https://forums.phpfreaks.com/topic/120169-creating-a-pdf/#findComment-620374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.