java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric

51cto.com | 8 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

    ÓÃJava¶ÁÈ¡pdfÖеÄÊý¾Ý - κ½ÜµÄ¼¼ÊõרÀ¸ - 51CTO¼¼Êõ²©¿Í

    51cto.com | 8 months ago
    java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/fontbox/afm/FontMetric

      at org.pdfbox.pdmodel.font.PDFont.getAFM()
    2. PDFBox - Java PDF Library
      PDFTextStripper.writeText
      1. org.pdfbox.pdmodel.font.PDFont.getAFM(PDFont.java:334)
      2. org.pdfbox.pdmodel.font.PDSimpleFont.getFontHeight(PDSimpleFont.java:104)
      3. org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:336)
      4. org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
      5. org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
      6. org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
      7. org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
      8. org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336)
      9. org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
      10. org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)
      10 frames
    3. print
      PdfReader.main
      1. print.PdfReader.readFdf(PdfReader.java:66)
      2. print.PdfReader.main(PdfReader.java:87)
      2 frames