Bill J. wrote:
>I've been thinking more about an API for the distiller that would
>allow it to be embedded in a Python or Java program, and called
>directly. Thanks to Python's ability to be linked as a library, this
>could also be used as a C API, in a C or C++ program that wanted to
>call the distiller directly. Here's what I've got so far (and this
>is working in my code, called from Python so far):
Bill, I recently tried to hook your code into a Java program. Here's what
I did:
public static void main(String args[])
{
String tempFileName = "plucker";
// call parser
String[] arguments = new String[14];
arguments[0] = "-V";
arguments[1] = "2";
arguments[2] = "--maxheight=50";
arguments[3] = "--maxwidth=50";
arguments[4] = "--bpp=4";
arguments[5] = "--noimages";
arguments[6] = "-P";
arguments[7] = ".";
arguments[8] = "-N";
arguments[9] = "TP MobileJ";
arguments[10] = "-f";
arguments[11] = tempFileName;
arguments[12] = "-H";
arguments[13] = "http://localhost/";
try {
pluckit.main(arguments);
}
catch (Exception e) {
}
System.out.println("Done with conduit");
}
However, it never gets to the last line. Is the Python program taking over
when called and then exiting through System.exit(0)? No exception is
thrown either. I might be using an older version of the jar file as the
new one doesn't seem to be on your ftp site anymore. I think I might be
able to hook it into my conduit if I can clear up this problem. Also, I'd
be willing to test out any API you get working.
Thanks
Bill
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev