: U+0083 is not available in this font's encoding: WinAnsiEncoding Row titleRow = table.createRow(rowHeight) Ĭell cell = titleRow.createCell(30, "Title") Ĭell = titleRow.createCell(70, TitleText) įor simple Text this works fine, I can see the font change from Helvetica but if the text contains UTF-8 characters (e.g., U+0083 etc), I just see the following exception thrown, PDTrueTypeFont unicodeFont = PDTrueTypeFont.loadTTF(doc, unicodeFileLocation) īaseTable table = new BaseTable(yStart, yStartNewPage, bottomMargin, tableWidth, margin, doc, page, true, drawContent) PDPage page = new PDPage(PDRectangle.A4) įile unicodeFileLocation = new File(getServletContext().getRealPath("/lib/ARIALUNI.TTF")) I am trying to find a way I could change the WinAnsiEncoding to Unicode, I've tried setting font like this, PDDocument doc = new PDDocument()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |