Browse Source

fix: PDF 다운로드 폰트 수정

feature/address-coordinate
lkd9125(이경도) 3 months ago
parent
commit
7958ba1bc3
  1. 4
      pav-server/src/main/java/com/palnet/biz/api/bas/dos/service/BasDosService.java
  2. BIN
      pav-server/src/main/resources/templates/fonts/Hmkmm.ttf
  3. 4
      pav-server/src/main/resources/templates/laanc/valid_document.html

4
pav-server/src/main/java/com/palnet/biz/api/bas/dos/service/BasDosService.java

@ -43,7 +43,6 @@ import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.TextStyle;
import java.util.*;
@ -508,6 +507,7 @@ public class BasDosService {
// HY헤드라인M
fontProvider.addFont("templates/fonts/H2HDRM.ttf", PdfEncodings.IDENTITY_H);
// 휴면명조
fontProvider.addFont("templates/fonts/Hmkmm.ttf", PdfEncodings.IDENTITY_H);
fontProvider.addFont("templates/fonts/NanumMyeongjo.ttf", PdfEncodings.IDENTITY_H);
fontProvider.addFont("templates/fonts/NanumMyeongjoBold.ttf", PdfEncodings.IDENTITY_H);
fontProvider.addFont("templates/fonts/NanumMyeongjoExtraBold.ttf", PdfEncodings.IDENTITY_H);
@ -519,7 +519,7 @@ public class BasDosService {
HtmlConverter.convertToPdf(html, pdfDoc, converterProperties);
}catch (IOException e){
log.error("", e);
new CustomException(ErrorCode.FILE_CREATE_FAIL);
throw new CustomException(ErrorCode.FILE_CREATE_FAIL);
}
}

BIN
pav-server/src/main/resources/templates/fonts/Hmkmm.ttf

Binary file not shown.

4
pav-server/src/main/resources/templates/laanc/valid_document.html

@ -25,10 +25,10 @@
</div>
</div>
<div style="text-align:right">
<span style="font-family: 'nanummyeongjo';">`[[${todayDate}]]([[${todayWeek}]]), 관제통신과</span>
<span style="font-family: 'Hmkmm';">`[[${todayDate}]]([[${todayWeek}]]), 관제통신과</span>
</div>
<div>
<div style="font-size:17px;margin:20px 0 10px 0;font-family: 'nanummyeongjo'; font-weight: bold">□ 비행승인 관련 검토 결과 <span style="font-size:15px; font-family: 'nanummyeongjo'; font-weight: normal;">(검토 구역 : 23개소)</span></div>
<div style="font-size:17px;margin:20px 0 10px 0;font-family: 'Hmkmm'; font-weight: bold">□ 비행승인 관련 검토 결과 <span style="font-size:15px; font-family: 'Hmkmm'; font-weight: normal;">(검토 구역 : 23개소)</span></div>
</div>
<div>
<table style="width:100%;border-collapse: collapse">

Loading…
Cancel
Save