美文网首页
apache pdfbox setValue报错 Unsuppo

apache pdfbox setValue报错 Unsuppo

作者: 垃圾简书_吃枣药丸 | 来源:发表于2022-10-21 15:30 被阅读0次
    java.lang.UnsupportedOperationException: null
        at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.encode(PDCIDFontType0.java:400)
        at org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:429)
        at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:333)
        at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:364)
        at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.calculateFontSize(AppearanceGeneratorHelper.java:823)
        at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.insertGeneratedAppearance(AppearanceGeneratorHelper.java:487)
        at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceContent(AppearanceGeneratorHelper.java:424)
        at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:248)
        at org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:264)
        at org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:227)
        at org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:219)
    
    • 原因: 字体不支持
    • 解决方案:调整字体
    image.png

    相关文章

      网友评论

          本文标题:apache pdfbox setValue报错 Unsuppo

          本文链接:https://www.haomeiwen.com/subject/qqrmzrtx.html