Hi, Has anyone experience or had problems implementing a JNI wrapper for apache FOP?
Bonus points: Any other options for processing xsl-fo from C++?
Hi, Has anyone experience or had problems implementing a JNI wrapper for apache FOP?
Bonus points: Any other options for processing xsl-fo from C++?
well, the obious way is to
#include <cstdio>
#include <string>
int runFop(const char* params) {
// put the real path here
const char* FOP_CMD = "fop.bat";
std::string cmd(FOP_CMD);
cmd += " ";
cmd += params;
return system(cmd.c_str());
}
I do that for C# not for C. I generate proxies to wrap fop classes, so it looks like original fop example, but it's not Java. The tool I use is jni4net I created.
For you Jace would be good choice I think.
We initially used fop as our rendering engine but found it had some size limitiations. We ended up purchasing a third-party product from Ecrion - XF Rendering Service. Yeah I know, its not open source, its not free, but it is a very good product that we have used for several years now with very good results.