• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

PDFBox 0.7.3 and FontMetric class

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!