C++ 从C+调用apachefop+;

C++ 从C+调用apachefop+;,c++,java-native-interface,xsl-fo,apache-fop,C++,Java Native Interface,Xsl Fo,Apache Fop,有没有人在为ApacheFop实现JNI包装器时遇到过或遇到过问题 奖励积分: 从C++中处理XSL FO的其他选项?< P>,最好的方法是< /P> #include <cstdio> #include <string> int runFop(const char* params) { // put the real path here const char* FOP_CMD = "fop.bat"; std::string cmd(

有没有人在为ApacheFop实现JNI包装器时遇到过或遇到过问题

奖励积分:
从C++中处理XSL FO的其他选项?

< P>,最好的方法是< /P>
#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());
}
#包括
#包括
int runFop(常量字符*参数){
//把真正的路径放在这里
const char*FOP_CMD=“FOP.bat”;
std::string cmd(FOP_cmd);
cmd+=“”;
cmd+=params;
返回系统(cmd.c_str());
}

我也会对这个答案感兴趣,因为几年前我也在寻找同样的东西,最后才使用了java FOP,这是我们从C++应用程序中不太理想的。 我生成代理来包装fop类,所以它看起来像原始的fop示例。我使用的工具是我创建的


我认为这对你来说是个不错的选择。

我们最初使用fop作为渲染引擎,但发现它有一些大小限制。我们最终从Ecrion-XF渲染服务购买了第三方产品。是的,我知道,它不是开源的,也不是免费的,但它是一个非常好的产品,我们已经使用了好几年,效果非常好。

不错,但几乎没有回答我的问题为什么不呢?是否只在内存中创建fop?