Thanks Andreas  ... I downloaded it and it is now working fine.
Is there some way I can disable the logging ? It causes much overhead to my program in runtime.

Best regards ,
Hesham

--------------------------------------------------
From: "Andreas Lehmkühler" <andr...@lehmi.de>
Sent: Monday, October 26, 2009 8:15 AM
To: <pdfbox-users@incubator.apache.org>
Subject: Re: Upgrading from 0.73 to 0.8

Hi,
Hesham G. schrieb:
Hi Andreas ,

Thanks for your reply.

What do you mean by it just stops at that particular line? How do you
determine that without having a stack trace or something like that?
I am using eclipse, where I put a number of breaking points until I
discover which line the code stops in.
-----------------------------------

Everything works fine for me. Do you have all needed jars on your
classpath?
Yes, I have them all. And I have just created now a small sample that
loads a pdf file and adds 1 page to it, I've got this Exception :
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at org.apache.pdfbox.pdfparser.BaseParser.<clinit>(BaseParser.java:58)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:840)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:808)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:733)
    at com.view.Class2.button4MouseClicked(Class2.java:358) -------->
This line : " pdfFile = PDDocument.load( filePath ); "
The commons-logging.jar is missing. You will find it at [1], the known
maven repository or by building pdfbox using the included ant skript.

BR
Andreas Lehmkühler

[1] http://commons.apache.org/downloads/download_logging.cgi

Reply via email to