-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix to prevent Korean language from being broken in PDF #1008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MyunghyunNero Please remove the .DS_Store
files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 알기로 글꼴을 적용하는 부분은 작년에 아래 링크에 있는 report html에 base64로 적용했었는데요.
지금은 나눔 고딕 글꼴 파일이 추가되어서 질문 드려요
report html에 있는 글꼴을 제거하거나, 나눔 고딕을 base64로 교체해야 할 것 같은데 어떻게 생각하시나요?
b091623
to
c5ea716
Compare
@70825 AS-ISTO BE모든 html 부분이 나눔 고딕으로 덮어씌워지는 것 같습니다! 그래서 html font 부분을 제거하고 htmlConverter에서 글꼴을 나눔고딕 말고 다른 부분으로 수정해보겠습니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
글꼴 하나만 적용되는게 확실히 깔끔해보이네요 👍👍
반영되면 다시 review request 보내주세요
c5ea716
to
113c420
Compare
@70825 이런 식으로 나오고 있습니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어요~ 간단하게 코멘트 남겼습니다 !
글꼴이나 bold의 경우엔 다른 분이 리뷰를 진행해주실 것 같아요
그리고 리뷰한 것 이외에 콤마 다음에 띄어쓰기를 하지 않은 간단한 컨벤션 부분도 같이 수정해주세요~
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); | ||
HtmlConverter.convertToPdf(html, outputStream); | ||
HtmlConverter.convertToPdf(html, outputStream,properties); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기능별로 줄바꿈을 사용하여 코드들을 구분하면 읽기 더 편할 것 같아요
@@ -48,9 +51,15 @@ public static PdfUtil getInstance() { | |||
} | |||
return instance; | |||
} | |||
public static ByteArrayInputStream html2pdf(String html) { | |||
public static ByteArrayInputStream html2pdf(String html) throws IOException { | |||
String Font = "src/main/resources/static/NanumGothicBold.ttf"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 부분은 카멜 케이스로 변수 네이밍을 하지 않은 이유가 있을까요?
그리고 이 부분은 파일 경로가 바뀌지 않으니 상수로 지정해도 무방해보입니다.
Signed-off-by: MyunghyunNero <mh1kim0910@gmail.com>
113c420
to
7503728
Compare
This PR has been automatically marked as stale because it hasn't had any recent activity. |
This PR was closed because it has been inactive for 5 days since being marked as stale. |
Description
close #1005
AS IS
Korean is broken in PDF.
TO BE
Type of change