diff --git a/resources/views/pdf/wire-pallet.blade.php b/resources/views/pdf/wire-pallet.blade.php index 97f08f8..9622898 100644 --- a/resources/views/pdf/wire-pallet.blade.php +++ b/resources/views/pdf/wire-pallet.blade.php @@ -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