spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.67k stars 748 forks source link

QR-Code for Invoicing? #562

Open reinhardjung opened 4 years ago

reinhardjung commented 4 years ago

Hi everyone.

Because i need to create Invoices with WordPress and this Tool can create QR-Codes. I wonder if i could use it to create QR-Invoices with html2pdf? QR-Code should be standard, so it should be possible, right?

So i do not have to use https://github.com/smhg/sepa-qr-php as well? Thanx a lot for any help!!!

spipu commented 4 years ago

what do you mean by "QR-invoices" ?

About QR-code, you can directly generate them. look at https://github.com/spipu/html2pdf/blob/master/doc/barcode.md and examples

reinhardjung commented 4 years ago

Thanx a lot for your fast Response!

I send you the Link: sepa-qr-php where is says: "Generates SEPA QR codes based on the European Payments Council's standard. These QR codes are scannable by many mobile banking apps. Because app support is at a decent level, it is a good idea to print such a code on an invoice. Extends the QrCode library preserving all its functionality in case lower level QR code manipulation is needed." So do you know if i need this "Extends the QrCode library"? Or do i hopefully just need your Library?

I think i need some of those Methods?

perler-at commented 1 week ago

Hello @reinhardjung!

You can create the QR code directly with HTML2PDF. The SEPA QR code simply consists of a series of lines with the SEPA information (https://en.wikipedia.org/wiki/EPC_QR_code). The only problem I currently have with html2pdf is that html2pdf replaces the line breaks with spaces.

I already opened an issue: https://github.com/spipu/html2pdf/issues/809 Maybe @spipu can take a look at it and give me/us a tip on how to get the line breaks into the QR code.

Best regards, perler