问一个word转pdf的问题
英有尽有 2011-12-01 09:43:24 用jacob,Adobe Acrobat 8 Professional做了个小程序,将word转成pdf,
运行环境为win2008服务器
程序运行后,当win2008服务器没有终端连接时,
由word生产ps文件成功,但是下面:
ActiveXComponent distiller = new ActiveXComponent("PDFDistiller.PDFDistiller.1");
Dispatch.callN(distiller, "FileToPDF", new Variant[] { ps文件路径, 输出pdf文件路径, PDFOption });
总是不能生产pdf文件,
服务器有终端连接时,pdf文件又能正常生成