diff --git a/app/Services/AppointmentCertService.php b/app/Services/AppointmentCertService.php index f332316b..9fd9c45a 100644 --- a/app/Services/AppointmentCertService.php +++ b/app/Services/AppointmentCertService.php @@ -95,7 +95,7 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response $pageWidth = $pdf->getPageWidth() - 40; $thWidth = 30; - $rowHeight = 8; + $rowHeight = 12; // 성명 / (빈칸) $this->addTableRow($pdf, $font, [ @@ -125,21 +125,21 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response $pdf->Ln(30); // 증명 문구 - $pdf->SetFont($font, '', 12); - $pdf->Cell(0, 10, '위와 같이 위촉하였음을 증명합니다.', 0, 1, 'C'); + $pdf->SetFont($font, '', 14); + $pdf->Cell(0, 12, '위와 같이 위촉하였음을 증명합니다.', 0, 1, 'C'); $pdf->Ln(20); // 발급일 $issueDate = $content['issue_date'] ?? date('Y-m-d'); $issueDateFormatted = $this->formatDate($issueDate); - $pdf->SetFont($font, 'B', 12); - $pdf->Cell(0, 10, $issueDateFormatted, 0, 1, 'C'); + $pdf->SetFont($font, 'B', 14); + $pdf->Cell(0, 12, $issueDateFormatted, 0, 1, 'C'); $pdf->Ln(30); // 회사명 + 대표이사 $ceoName = $content['ceo_name'] ?? ''; - $pdf->SetFont($font, 'B', 14); - $pdf->Cell(0, 10, ($content['company_name'] ?? '').' 대표이사 '.$ceoName.' (인)', 0, 1, 'C'); + $pdf->SetFont($font, 'B', 16); + $pdf->Cell(0, 12, ($content['company_name'] ?? '').' 대표이사 '.$ceoName.' (인)', 0, 1, 'C'); $pdfContent = $pdf->Output('', 'S'); $fileName = '위촉증명서_'.($content['name'] ?? '').'.pdf'; @@ -153,22 +153,22 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response private function addTableRow(\TCPDF $pdf, string $font, array $cells): void { $pageWidth = $pdf->getPageWidth() - 40; - $rowHeight = 8; + $rowHeight = 12; $thWidth = 30; if (count($cells) === 1) { - $pdf->SetFont($font, 'B', 10); + $pdf->SetFont($font, 'B', 12); $pdf->SetFillColor(248, 249, 250); $pdf->Cell($thWidth, $rowHeight, $cells[0][0], 1, 0, 'L', true); - $pdf->SetFont($font, '', 10); + $pdf->SetFont($font, '', 12); $pdf->Cell($pageWidth - $thWidth, $rowHeight, $cells[0][1], 1, 1, 'L'); } else { $tdWidth = ($pageWidth - $thWidth * 2) / 2; foreach ($cells as $cell) { - $pdf->SetFont($font, 'B', 10); + $pdf->SetFont($font, 'B', 12); $pdf->SetFillColor(248, 249, 250); $pdf->Cell($thWidth, $rowHeight, $cell[0], 1, 0, 'L', true); - $pdf->SetFont($font, '', 10); + $pdf->SetFont($font, '', 12); $pdf->Cell($tdWidth, $rowHeight, $cell[1], 1, 0, 'L'); } $pdf->Ln(); diff --git a/resources/views/approvals/create.blade.php b/resources/views/approvals/create.blade.php index 40043715..f562247b 100644 --- a/resources/views/approvals/create.blade.php +++ b/resources/views/approvals/create.blade.php @@ -1282,7 +1282,7 @@ function printAppointmentCertPreview() { const content = document.getElementById('appointment-cert-preview-content').innerHTML; const win = window.open('', '_blank', 'width=800,height=1000'); win.document.write('
+
위와 같이 위촉하였음을 증명합니다.
-+
${e(d.issueDateFormatted)}
${e(d.company)}
-대표이사 ${e(d.ceoName)} (인)
+${e(d.company)}
+대표이사 ${e(d.ceoName)} (인)
| 성 명 | ${e(d.name)} | ||
|---|---|---|---|
| 주민등록번호 | ${e(d.resident)} | ||
| 위촉(재직)기간 | ${e(d.hireDate)} ~ ${e(d.resignDate)} | 계약자격 | ${e(d.contractType)} |
| 용 도 | ${e(d.purpose)} | ||
위와 같이 위촉하였음을 증명합니다.
-${e(d.issueDateFormatted)}
+위와 같이 위촉하였음을 증명합니다.
+${e(d.issueDateFormatted)}
${e(d.company)}
-대표이사 ${e(d.ceoName)} (인)
+${e(d.company)}
+대표이사 ${e(d.ceoName)} (인)