addres qoshish da api o'zgartirildi
This commit is contained in:
@@ -106,10 +106,17 @@ class ConclusionController extends Controller
|
|||||||
$pdf->AddPage($size2['orientation'], [$size2['width'], $size2['height']]);
|
$pdf->AddPage($size2['orientation'], [$size2['width'], $size2['height']]);
|
||||||
$pdf->useTemplate($tpl);
|
$pdf->useTemplate($tpl);
|
||||||
|
|
||||||
// All pages: bottom-right corner, white background
|
if ($i === 1) {
|
||||||
|
// First page: right side, in the blank area below header separator lines
|
||||||
|
$sz = 35;
|
||||||
|
$qrX = $size2['width'] - $sz - 18;
|
||||||
|
$qrY = 15;
|
||||||
|
} else {
|
||||||
|
// Other pages: bottom-right
|
||||||
$sz = 22;
|
$sz = 22;
|
||||||
$qrX = $size2['width'] - $sz - 8;
|
$qrX = $size2['width'] - $sz - 8;
|
||||||
$qrY = $size2['height'] - $sz - 6;
|
$qrY = $size2['height'] - $sz - 6;
|
||||||
|
}
|
||||||
$pdf->SetFillColor(255, 255, 255);
|
$pdf->SetFillColor(255, 255, 255);
|
||||||
$pdf->Rect($qrX - 1, $qrY - 1, $sz + 2, $sz + 2, 'F');
|
$pdf->Rect($qrX - 1, $qrY - 1, $sz + 2, $sz + 2, 'F');
|
||||||
$pdf->Image($qrPath, $qrX, $qrY, $sz, $sz);
|
$pdf->Image($qrPath, $qrX, $qrY, $sz, $sz);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
storage/app/public/attachments/auto_7897/qr.png
Normal file
BIN
storage/app/public/attachments/auto_7897/qr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Reference in New Issue
Block a user