Topic: Problems Displaying QR Code in the footer

I cant display a QR image in the Footer. I tried the $Footer[] array but I seams that It only displays text. I generate the QR from the URL in doctext.inc

 
    if (@$this->formData['payment_service'])    //payment link
    {
        $amt = number_format($this->formData["ov_freight"] + $this->formData["ov_gst"] + $this->formData["ov_amount"], user_price_dec());
        $service = $this->formData['payment_service'];
        $url = payment_link($service, array(
            'company_email' => $this->company['email'],
            'amount' => $amt,
            'currency' => $this->formData['curr_code'],
            'comment' => $this->title . " " . $this->formData['reference'],
            'invoice' => $this->formData['reference']
            ));
        $Footer[_("You can pay through"). " $service: "] = "$url";
        QRcode::png($url, $tempDir.'030.png', QR_ECLEVEL_L, 3);
    }

Re: Problems Displaying QR Code in the footer

May be it's better to make the image as jpg and than use addimage  function to make it display there.

Or you can update the tcpdf and than use it directly the 2d barcode to get it working

Subscription service based on FA
HRM CRM POS batch Themes

Re: Problems Displaying QR Code in the footer

Thank you, I ended up getting it working with the base fpdf built in function Image().
Now I just need to figure out where to put this thing. Haha it looks weird everywhere! I hate when things are not Symmetrical.

    if (@$this->formData['payment_service'])    //payment link
    {
        $amt = number_format($this->formData["ov_freight"] + $this->formData["ov_gst"] + $this->formData["ov_amount"], user_price_dec());
        $service = $this->formData['payment_service'];
        $url = payment_link($service, array(
            'company_email' => $this->company['email'],
            'amount' => $amt,
            'currency' => $this->formData['curr_code'],
            'comment' => $this->title . " " . $this->formData['reference'],
            'invoice' => $this->formData['reference']
            ));
        $Footer[_("You can pay through"). " $service: "] = "$url";
        QRcode::png($url, $tempDir.'030.png', QR_ECLEVEL_L, 3);
        $this->Image($tempDir.'030.png',35,540);
    }

Re: Problems Displaying QR Code in the footer

hi guys

I want to add QR to invoice report containing some information like
company name
Invoice No. , date & time stamp
VAT no.
VAT amount
total amount

can any one  do it, contact me

Re: Problems Displaying QR Code in the footer

aalrashoudi wrote:

hi guys

I want to add QR to invoice report containing some information like
company name
Invoice No. , date & time stamp
VAT no.
VAT amount
total amount

can any one  do it, contact me

Is it for zakat QR code,?

Subscription service based on FA
HRM CRM POS batch Themes

Re: Problems Displaying QR Code in the footer

Yes its for zakat