You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Thomas Fischer <fi...@aon.at> on 2009/10/27 16:32:11 UTC

PDFbox 8.0

Hello,

I installed successfully PDFbox 7.3 on my MacBook (Mac OS X 10.6.1).
But I can't get PDFbox 8.0 to run, I only get the error message

Exception in thread "main"  
org.apache.pdfbox.exceptions.WrappedIOException
	at org.apache.pdfbox.util.PDFStreamEngine.<init>(PDFStreamEngine.java: 
137)
	at org.apache.pdfbox.util.PDFTextStripper.<init>(PDFTextStripper.java: 
162)
	at org.apache.pdfbox.ExtractText.main(ExtractText.java:224)
Caused by: java.lang.ClassCastException:  
org.pdfbox.util.operator.ShowTextGlyph cannot be cast to  
org.apache.pdfbox.util.operator.OperatorProcessor
	at org.apache.pdfbox.util.PDFStreamEngine.<init>(PDFStreamEngine.java: 
131)
	... 2 more

I am puzzled about the "org.pdfbox.util.operator.ShowTextGlyph"  
appearing here (no apache!) and wondering if  
org.pdfbox.util.operator.ShowTextGlyph should be cast to  
org.apache.pdfbox.util.operator.OperatorProcessor.

Any help would be appreciated.

Best regards
Thomas




Re: PDFbox 8.0

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Tue, Oct 27, 2009 at 4:32 PM, Thomas Fischer <fi...@aon.at> wrote:
> I am puzzled about the "org.pdfbox.util.operator.ShowTextGlyph" appearing
> here (no apache!) and wondering if org.pdfbox.util.operator.ShowTextGlyph
> should be cast to org.apache.pdfbox.util.operator.OperatorProcessor.

I believe you have both versions (0.7.3 and 0.8.0) of PDFBox in your
classpath. Remove the old jar, and everything should work correctly.

BR,

Jukka Zitting