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('위촉증명서'); - win.document.write(''); - win.document.write(''); + win.document.write(''); + win.document.write('
'); win.document.write(content); - win.document.write(''); + win.document.write('
'); win.document.close(); win.onload = function() { win.print(); }; } @@ -1296,9 +1296,9 @@ function buildAppointmentCertPreviewHtml(d) { const tdStyle = 'border:1px solid #333; padding:10px 14px; font-size:14px;'; return ` -

위 촉 증 명 서

+

위 촉 증 명 서

- +
@@ -1325,15 +1325,15 @@ function buildAppointmentCertPreviewHtml(d) {
성 명 ${e(d.name)}
-

+

위와 같이 위촉하였음을 증명합니다.

-

+

${e(d.issueDateFormatted)}

-
+

${e(d.company)}

대표이사    ${e(d.ceoName)}    (인)

diff --git a/resources/views/approvals/show.blade.php b/resources/views/approvals/show.blade.php index 6a02788b..2ff6ca8f 100644 --- a/resources/views/approvals/show.blade.php +++ b/resources/views/approvals/show.blade.php @@ -599,10 +599,10 @@ function printAppointmentCertShowPreview() { const content = document.getElementById('appointment-cert-show-preview-content').innerHTML; const win = window.open('', '_blank', 'width=800,height=1000'); win.document.write('위촉증명서'); - win.document.write(''); - win.document.write(''); + win.document.write(''); + win.document.write('
'); win.document.write(content); - win.document.write(''); + win.document.write('
'); win.document.close(); win.onload = function() { win.print(); }; } @@ -613,17 +613,17 @@ function _buildAppointmentCertHtml(d) { const tdStyle = 'border:1px solid #333; padding:10px 14px; font-size:14px;'; return ` -

위 촉 증 명 서

- +

위 촉 증 명 서

+
성 명${e(d.name)}
주민등록번호${e(d.resident)}
소 속${e(d.department)}연 락 처${e(d.phone)}
위촉(재직)기간${e(d.hireDate)} ~ ${e(d.resignDate)}계약자격${e(d.contractType)}
용 도${e(d.purpose)}
-

위와 같이 위촉하였음을 증명합니다.

-

${e(d.issueDateFormatted)}

-
+

위와 같이 위촉하였음을 증명합니다.

+

${e(d.issueDateFormatted)}

+

${e(d.company)}

대표이사    ${e(d.ceoName)}    (인)