Jump to content

Creating a PDF


cheechm

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.