File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes PDFBox 0.7.3  and FontMetric class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "PDFBox 0.7.3  and FontMetric class" Watch "PDFBox 0.7.3  and FontMetric class" New topic

PDFBox 0.7.3 and FontMetric class

clive jordan
Ranch Hand

Joined: Apr 27, 2005
Posts: 39

I have been happily using PDFBox 0.7.2 to strip text from PDF documents for a while using the pdfbox precompiled jar. I tried upgrading to PDFBox 0.7.3 and substituted the appropriate jar onto the class path.

When the jar gets called it is looking for a FontMetric class which it cannot find. Having had a poke around in the pdfBox-0.7.2 jar, I see that the FontMetric class exists there. It appears to have been removed from the pdfBox-0.7.3 jar.

Does anyone know if this functionality has been moved out into another library and if so, where can I get my hands on it? PDFbox documentation does not seem to mention the issue so I am assuming I'm doing something terminally stupid.

Any ideas ?

clive jordan
Ranch Hand

Joined: Apr 27, 2005
Posts: 39
Well, I don't normally talk to myself but thought that others may like to know that the offending library is called FontBox-0.1.0.jar and can be found on
clive jordan
Ranch Hand

Joined: Apr 27, 2005
Posts: 39
and another thing.....

If you want to decrypt PDFs, you need a couple of jars from

I kind of think spelling this out in the release notes whould have been helpful!
I agree. Here's the link:
subject: PDFBox 0.7.3 and FontMetric class
Similar Threads
Reading Text using PDFBox
search engine to search both at database and web application level
PDFBox not printing images
Problems running jar file
Replace PDF Content