fix: [esign] 운영서버 PDF 미리보기 필드값 누락 수정
- TCPDF K_PATH_FONTS를 storage/fonts/tcpdf/로 설정하여 vendor 쓰기 권한 문제 해결 - 사전 생성된 Pretendard 폰트 정의 파일 포함 (런타임 생성 불필요) - downloadDocument() 에러 로깅 상세화 (trace 포함)
This commit is contained in:
@@ -665,7 +665,11 @@ public function downloadDocument(string $token): StreamedResponse|JsonResponse
|
||||
$pdfService = new PdfSignatureService;
|
||||
$filePath = $pdfService->generatePreview($contract);
|
||||
} catch (\Throwable $e) {
|
||||
Log::warning('미리보기 PDF 생성 실패, 원본 제공', ['error' => $e->getMessage()]);
|
||||
Log::error('미리보기 PDF 생성 실패, 원본 제공', [
|
||||
'contract_id' => $contract->id,
|
||||
'error' => $e->getMessage(),
|
||||
'trace' => $e->getTraceAsString(),
|
||||
]);
|
||||
$filePath = $contract->original_file_path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user