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

Stack Overflow | Matt | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    National/Polish characters in PDAcroForm using Apache PDFBox 2.0.2

    Stack Overflow | 8 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