내 코드에서 IDENTITY_H 글꼴 encodinng를 사용하려고 해요 :이 iText : (자), UnsupportedEncodingException : 신원 H
BaseFont courier = BaseFont.createFont(BaseFont.COURIER, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
Font font = new Font(courier, 12, Font.NORMAL);
여기에 내가 오류입니다. 추가 항아리를 추가해야합니까, 아니면 정확히 무엇이 문제입니까? 당신의 createFont 방법의 첫 번째 매개 변수로 BaseFont.xxxx을 사용하는 경우에만 감사
ExceptionConverter: java.io.UnsupportedEncodingException: Identity-H
at java.lang.StringCoding.encode(StringCoding.java:269)
at java.lang.String.getBytes(String.java:947)
at com.lowagie.text.pdf.PdfEncodings.convertToBytes(Unknown Source)
at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at fr.srd.core.TextFileToPDF.main(TextFileToPDF.java:35)
아니고 단지의 문제 .. 내가 아래에 언급 된 진짜 문제 – Naren