diff --git a/app/Services/AppointmentCertService.php b/app/Services/AppointmentCertService.php index 427f8cca..f332316b 100644 --- a/app/Services/AppointmentCertService.php +++ b/app/Services/AppointmentCertService.php @@ -78,17 +78,20 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); - $pdf->SetMargins(20, 20, 20); + $pdf->SetMargins(20, 40, 20); $pdf->SetAutoPageBreak(true, 20); $font = $this->getKoreanFont(); $pdf->AddPage(); + // 상단 여백 + $pdf->Ln(20); + // 제목 $pdf->SetFont($font, 'B', 22); $pdf->Cell(0, 20, '위 촉 증 명 서', 0, 1, 'C'); - $pdf->Ln(8); + $pdf->Ln(20); $pageWidth = $pdf->getPageWidth() - 40; $thWidth = 30; @@ -119,19 +122,19 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response $this->addTableRow($pdf, $font, [ ['용 도', $content['purpose'] ?? '-', 0], ]); - $pdf->Ln(12); + $pdf->Ln(30); // 증명 문구 $pdf->SetFont($font, '', 12); $pdf->Cell(0, 10, '위와 같이 위촉하였음을 증명합니다.', 0, 1, 'C'); - $pdf->Ln(6); + $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->Ln(12); + $pdf->Ln(30); // 회사명 + 대표이사 $ceoName = $content['ceo_name'] ?? ''; diff --git a/resources/views/approvals/create.blade.php b/resources/views/approvals/create.blade.php index 8be7c080..40043715 100644 --- a/resources/views/approvals/create.blade.php +++ b/resources/views/approvals/create.blade.php @@ -1282,10 +1282,10 @@ function printAppointmentCertPreview() { const content = document.getElementById('appointment-cert-preview-content').innerHTML; const win = window.open('', '_blank', 'width=800,height=1000'); win.document.write('