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