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

devx.com | 7 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

    Reading pdf files(please help me)

    Oracle Community | 1 decade ago | 807589
    java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric
  2. 0

    Reading and Editing text of an existing pdf using JAVA

    devx.com | 7 months ago
    java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric
  3. 0

    PDF Text Parser: Converting PDF to Text in Java using PDFBox

    prasannatech.net | 4 months ago
    java.lang.NoClassDefFoundError: org/fontbox/afm/FontM etric
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem using PDFBox to extract text from PDF documents

    Coderanch | 8 years ago | Konstantinos Vasileiou
    java.lang.NoClassDefFoundError: org/fontbox/afm/AFMParser

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/fontbox/afm/FontMetric

      at org.pdfbox.pdmodel.font.PDFont.getAFM()
    2. PDFBox - Java PDF Library
      PDFTextStripper.getText
      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.ShowTextGlyph.process(ShowTextGlyph.java:80)
      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)
      11. org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149)
      11 frames
    3. PdfBox
      PdfBoxRead.main
      1. PdfBox.PdfBoxRead.main(PdfBoxRead.java:24)
      1 frame