bnomei / kirby3-qrcode

Generate QRCodes easily.
https://forum.getkirby.com/t/plugin-qr-code-field-and-page-method/6798
MIT License
12 stars 3 forks source link

PDF generation not possible #16

Closed dgsiegel closed 2 years ago

dgsiegel commented 2 years ago

Using

$page->qrcode()->download(
  $page->slug() . ".pdf"
);

I get the following error:

site/plugins/kirby3-qrcode/vendor/endroid/qr-code/src/Writer/PdfWriter.php: Unable to find FPDF: check your installation

Would it be possible to add FPDF as a dependency to composer.json?

bnomei commented 2 years ago

composer merges all sources. you should be able to run

composer require setasign/fpdf:^1.8

an have that lib available then.

i am not in favor for adding pdf generation by default since i want to keep the plugins as small as possible and fpdf is a big lib.