Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
Author

PDFBox 0.7.3 and FontMetric class

clive jordan
Ranch Hand

Joined: Apr 27, 2005
Posts: 39
Hello.

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 ?

Thanks,
Clive
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 sourceforge.net.
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 bouncycastle.org.

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