Merge pull request 'Added pdf qr code for sticker print page' (#41) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #41
This commit was merged in pull request #41.
This commit is contained in:
48
resources/views/pdf/qrcode.blade.php
Normal file
48
resources/views/pdf/qrcode.blade.php
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{{-- <!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body { text-align: center; font-family: Arial, sans-serif; }
|
||||||
|
.qr-container { margin-top: 30px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="qr-container">
|
||||||
|
<img src="data:image/png;base64,{{ $qrCode }}" width="250" height="250">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html> --}}
|
||||||
|
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
@page {
|
||||||
|
margin: 0;
|
||||||
|
size: 100mm 100mm;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
width: 100mm;
|
||||||
|
height: 100mm;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
width: 100mm;
|
||||||
|
height: 100mm;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<img src="data:image/png;base64,{{ $qrCode }}" />
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
Reference in New Issue
Block a user