PdfBox encode symbol currency euro

前端 未结 4 1004
夕颜
夕颜 2020-11-27 08:08

I created a PDF document with the Apache PDFBox library. My problem is to encode the euro currency symbol when drawing a string on the page, because the base font Helvetica

4条回答
  •  一向
    一向 (楼主)
    2020-11-27 08:36

    Maybe is too late, but I did it using:

    String toPDF = String.valueOf(Character.toChars(e.getCode("Euro")));
    

    Make sure you put uppercase "E", if you do "euro" throws an error. Please take a look of this link it help me a lot http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt

提交回复
热议问题