fix:날짜 형식 통일 (Y년 n월 j일) + 날짜 폰트 크기 일관성 확보
- overlayDate: Y-m-d → Y년 n월 j일, 미지정 시 12pt 고정 - buildVariableMap: current_date/expires_at도 동일 형식 적용 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -161,14 +161,16 @@ private function overlayDate(Fpdi $pdf, EsignSignField $field, float $x, float $
|
||||
$dateText = $field->field_value;
|
||||
|
||||
if (! $dateText && $signer && $signer->signed_at) {
|
||||
$dateText = $signer->signed_at->format('Y-m-d');
|
||||
$dateText = $signer->signed_at->format('Y년 n월 j일');
|
||||
}
|
||||
|
||||
if (! $dateText) {
|
||||
$dateText = now()->format('Y-m-d');
|
||||
$dateText = now()->format('Y년 n월 j일');
|
||||
}
|
||||
|
||||
$this->renderText($pdf, $dateText, $x, $y, $w, $h, $field->font_size, $field->text_align ?? 'L');
|
||||
// 날짜 필드는 폰트 크기를 일관되게 유지 (미지정 시 12pt 고정)
|
||||
$fontSize = $field->font_size ?: 12;
|
||||
$this->renderText($pdf, $dateText, $x, $y, $w, $h, $fontSize, $field->text_align ?? 'L');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user