Back to Blog
Php receipt generator7/8/2023 The full code is quite frankly too long to insert here, but you should get the idea, and you get fairly precise layout control. $this->_row($width, array($address, $customer)) $this->_row($width, array("MY NAME", $customer)) The script is a receipt page that can be bookmarked-it expects a custid as a GET method parameter-and the script does nothing but read details from the database. $this->pdfinvoice->SetFont('times', 'i', $this->pdfinvoice->smallFont ) The Customer Receipt Page Example 10-3 shows the customer receipt script, customer.3, that is called after a database write to insert or update a customer. $this->pdfinvoice->SetFont('times', 'b', $this->pdfinvoice->bigFont ) $margins = $this->pdfinvoice->getMargins() $width = $this->pdfinvoice->GetPageWidth()/2 In my case my data is sourced from a SOAP interface to my accounting system and use CodeIgniter for my app, and I can do this: $address = $extraclient->get_company_address() ![]() ![]() ![]() I will say that depending on your data source you may have some issues. I use TCPDF (see ) for this: its pretty capable and not too painful to get setup.
0 Comments
Read More
Leave a Reply. |