Adding dw2pdf version 2023-11-25 (48253f1).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d4820b660a
commit
8e32b01eb0
999 changed files with 144285 additions and 0 deletions
30
plugins/55/dw2pdf/vendor/mpdf/qrcode/README.md
vendored
Normal file
30
plugins/55/dw2pdf/vendor/mpdf/qrcode/README.md
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
# mPDF QR code library
|
||||
|
||||
QR code generating library with HTML/PNG/mPDF output possibilities.
|
||||
|
||||
[](https://travis-ci.org/mpdf/mpdf)
|
||||
|
||||
This is based on QrCode library bundled with mPDF until v8.0, made by Laurent Minguet. It is provided under LGPL license.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ composer require mpdf/qrcode
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
use Mpdf\QrCode\QrCode;
|
||||
use Mpdf\QrCode\Output;
|
||||
|
||||
$qrCode = new QrCode('Lorem ipsum sit dolor');
|
||||
|
||||
$output = new Output\Png();
|
||||
|
||||
// Save black on white PNG image 100px wide to filename.png
|
||||
$data = $output->output($qrCode, 100, [255, 255, 255], [0, 0, 0]);
|
||||
file_put_contents('filename.png', $data);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue