Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Sat, 28 Feb 2009, Christian Heimes wrote: Christian Heimes wrote: Thanks Andi! Your proposed solution worked like a charm and the file compiles. However the next file breaks with another error. This time it didn't help to add operator to the list of RES Follow up: Apparently JCC doesn't

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: public native void pythonDecRef(); public native void processTextPosition( TextPosition text ); public native void startDocument(PDDocument pdf); public native void startPage(PDPage page); } pdfbox.initVM(classpath=pdfbox.CLASSPATH)

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote: At first quick glance, you declare a native startPage method but your python class is not implementing it. On the other hand, it has a startArticle method. Oh, you are right. But that doesn't fix the issue. It's still failing with the error message SystemError: NULL result

Re: Wrapping PDFBox with JCC

2009-02-28 Thread Andi Vajda
On Sat, 28 Feb 2009, Christian Heimes wrote: Once I got the wrappring right I run into another issue. The generated code failed to compile: ... XMLRecordReader.h - ... XMLRecordReader(const XMLRecordReader obj) : java::lang::Object(obj) {} jboolean bool(const