ranjith-dev #397
@@ -38,7 +38,7 @@
|
||||
|
||||
// Total fixed space
|
||||
$fixedSpace = $titleHeight +
|
||||
(5 * $headerRowHeight) + // 6 header rows
|
||||
(5 * $headerRowHeight) +
|
||||
$itemHeaderHeight +
|
||||
$grossWeightHeight +
|
||||
$netWeightHeight +
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
$itemRowHeight = floor(($spaceForItemsOnly / $numItems) * 10) / 10;
|
||||
|
||||
// $itemRowHeight -= 0.5;
|
||||
$itemRowHeight -= 0.5;
|
||||
if ($numItems == 1) {
|
||||
$itemRowHeight -= 0.5;
|
||||
}
|
||||
@@ -79,24 +79,26 @@
|
||||
$compensatedNetHeight = $netWeightHeight - 0.6;
|
||||
$compensatedLicenseHeight = $licenseHeight - 0.6;
|
||||
$compensatedCompanyHeight = $companyInfoHeight - 0.6;
|
||||
|
||||
// $qrBase64 = 'data:image/png;base64,' . base64_encode(
|
||||
// QrCode::format('png')
|
||||
// ->size(120) // 12mm ~ 120px
|
||||
// ->margin(0)
|
||||
// ->generate($pallet)
|
||||
// $qrBase64 = 'data:image/png;base64,' . base64_encode(
|
||||
// QrCode::format('png')
|
||||
// ->size(120)
|
||||
// ->margin(0)
|
||||
// ->errorCorrection('H')
|
||||
// ->generate($pallet)
|
||||
// );
|
||||
$qrBase64 = 'data:image/png;base64,' . base64_encode(
|
||||
\SimpleSoftwareIO\QrCode\Facades\QrCode::format('png')
|
||||
->size(120)
|
||||
->margin(0)
|
||||
->errorCorrection('H')
|
||||
->generate($pallet)
|
||||
);
|
||||
@endphp
|
||||
|
||||
<style>
|
||||
@page {
|
||||
size: 85mm 100mm;
|
||||
margin: 0;
|
||||
/* margin: 0; */
|
||||
margin: 0.5mm;
|
||||
}
|
||||
|
||||
* {
|
||||
|
||||
Reference in New Issue
Block a user