mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
QR codes for invoics as a variable
This commit is contained in:
parent
a24f23995e
commit
7d288fc4de
@ -63,17 +63,15 @@ trait Inviteable
|
|||||||
{
|
{
|
||||||
|
|
||||||
$renderer = new ImageRenderer(
|
$renderer = new ImageRenderer(
|
||||||
new RendererStyle(300),
|
new RendererStyle(200),
|
||||||
new SvgImageBackEnd()
|
new SvgImageBackEnd()
|
||||||
);
|
);
|
||||||
$writer = new Writer($renderer);
|
$writer = new Writer($renderer);
|
||||||
|
|
||||||
$qr = $writer->writeString($this->getPaymentLink());
|
$qr = $writer->writeString($this->getPaymentLink());
|
||||||
|
|
||||||
return "<svg viewBox='0 0 300 300' width='300' height='300' preserveAspectRatio='xMidYMid meet' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>
|
return "<svg viewBox='0 0 200 200' width='200' height='200' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>
|
||||||
<rect x='0' y='0' width='100%'' height='100%' />
|
<rect x='0' y='0' width='100%'' height='100%' />{$qr}</svg>";
|
||||||
{$qr}
|
|
||||||
</svg>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user