Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote: > Something's not setup right and the error is not properly reported. > To debug this, I'd use gdb to step through the code. > If you send me a self-contained test case that reproduces this, I can > give it a try. I'll prepare a test case tomorrow. Thanks again! Christian

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: 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

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-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) cl

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote > > After both these fixes, I was able to build wrappers for pdfbox: > > > > >>> from pdfbox import * > > >>> initVM(CLASSPATH, vmargs='-Djava.awt.headless=true') > > > > >>> > > > > This is all checked into rev 751772. > > > > Please let me know if this works for you, I'd

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-07 Thread Andi Vajda
Ah well, using a reserved word as a c++ namespace name wasn't planned. Sneakier, but clearly a bug in JCC. Andi.. On Feb 28, 2009, at 19:08, Christian Heimes wrote: Andi Vajda schrieb: On Sat, 28 Feb 2009, Christian Heimes wrote: Once I got the wrappring right I run into another issue. The

Re: Wrapping PDFBox with JCC

2009-02-28 Thread Christian Heimes
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 check the list of RESERVED words when it cre

Re: Wrapping PDFBox with JCC

2009-02-28 Thread Christian Heimes
Andi Vajda schrieb: > > 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:

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 java::lang::St

Wrapping PDFBox with JCC

2009-02-28 Thread Christian Heimes
Hello! I'm trying to wrap pdfbox with JCC and I run into multiple issues. At first the list of required jars kept on growing. I had to remove two packages and one class to keep the list small. Is there a better way to omit some packages from getting wrapped? --exclude didn't do what I was expectin