java.lang.IllegalArgumentException: U+0105 is not available in this font's encoding: WinAnsiEncoding

Stack Overflow | Matt | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    National/Polish characters in PDAcroForm using Apache PDFBox 2.0.2

    Stack Overflow | 10 months ago | Matt
    java.lang.IllegalArgumentException: U+0105 is not available in this font's encoding: WinAnsiEncoding

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      U+0105 is not available in this font's encoding: WinAnsiEncoding

      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.encode()
    2. Apache PDFBox
      PlainText$Paragraph.getLines
      1. org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.encode(PDTrueTypeFont.java:368)[pdfbox-2.0.2.jar:2.0.2]
      2. org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:286)[pdfbox-2.0.2.jar:2.0.2]
      3. org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:315)[pdfbox-2.0.2.jar:2.0.2]
      4. org.apache.pdfbox.pdmodel.interactive.form.PlainText$Paragraph.getLines(PlainText.java:169)[pdfbox-2.0.2.jar:2.0.2]
      4 frames