Hi Daniel,

Thank you, it was indeed helpful. If any of the web people are listening to this, I'd suggest the following: * Sort out the dependencies.html / redistribution.html inconsistencies and update the list (some of the libraries listed below, including the logging library, are not in the list) * On the download page, either add a clear link to dependencies.html or show the whole list of required libraries (with links to where they can be downloaded), as anybody downloading the tool is very likely to want those libraries as well.

Other than this, thanks for a nice tool - it really seems useful.

Best wishes,
Martin

On 13/04/2010 14:43, Daniel Wilson wrote:
I don't know why that dependencies page says that.

PDFBox depends on:

   - Apache FontBox (a related project, possibly seen as a subproject of
   PDFBox).
   - Apache JempBox(a related project, possibly seen as a subproject of
   PDFBox).
   - Lucene
   - BCProv
   - BCMail
   - JUnit
   - Apache Commons Logging.


You may do what you need omitting some of those.  In my own use, I don't
distribute BCProv, BCMail, Lucene, or JUnit. But for some tasks those
dependencies are very real.  You may also find some other dependency ... but
those are the ones included in our .Net build.

hope this helps,
Daniel

On Tue, Apr 13, 2010 at 7:06 AM, Martin Gerner <
[email protected]> wrote:

Hi all,

I'd like some help with figuring out exactly what libraries PDFBox relies
on, and how to get them.

In order to test my download of pdfbox-1.1.0.jar, I ran the following
command: "java -cp pdfbox-1.1.0.jar org.apache.pdfbox.ExtractText sample.pdf
article.txt".
This produced the following exception: "Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory". Sure
enough, after looking in the source tree I can see that there is no such
class in there.

I searched around on the PDFBox page for a list of required libraries and
how to get them, but to no success - there's certainly no information on the
download page.

With the help of Google I found this page:
http://pdfbox.apache.org/userguide/redistribution.html which lists a
number of required libraries. Unfortunately, none of them seem to fit the
Apache commons description that the exception gave me (additionally, whoever
thought of only linking to the library licenses but not to where you can
actually download the libraries? Somebody visiting the site will undoubtedly
have much more use of links to download pages).

After Googling a bit more, I found this page:
http://pdfbox.apache.org/dependencies.html which says that there are no
dependencies at all. This conflicts with both my own experience (getting an
exception due to missing files in the jar library) and the redistribution
page linked above.

Am I doing something very wrong? This is really quite frustrating, forcing
me to instead turn to alternative PDF libraries.

Best wishes,
Martin Gerner

--
Martin Gerner
Faculty of Life Sciences
Michael Smith Building
University of Manchester
Manchester, M13 9PT





--
Martin Gerner
Faculty of Life Sciences
Michael Smith Building
University of Manchester
Manchester, M13 9PT

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to