IIS上的pdf2swf.exe错误

IIS上的pdf2swf.exe错误,iis,pdf,pdf2swf,Iis,Pdf,Pdf2swf,我正在尝试通过Process proc=new Process()在windows 2008 server上使用pdf2swf将PDF文件转换为SWF 从VisualStudio运行时,一切正常。但从IIS运行时,我在大多数文件上都会看到: ERROR Internal error: No current splash fontinfo ERROR Internal error: No current splash fontinfo ERROR Invalid charid

我正在尝试通过
Process proc=new Process()
在windows 2008 server上使用pdf2swf将PDF文件转换为SWF

从VisualStudio运行时,一切正常。但从IIS运行时,我在大多数文件上都会看到:

ERROR   Internal error: No current splash fontinfo  
ERROR   Internal error: No current splash fontinfo  
ERROR   Invalid charid 3 for font 00f896d8 (0 characters)  
ERROR   Invalid charid 615 for font 00f896d8 (0 characters)  
ERROR   Invalid charid 602 for font 00f896d8 (0 characters)
我相信原因是许可,但我不知道我必须改变什么


有人能帮我吗

我现在找到了解决办法。我正在使用windows服务将pdf转换为swf,我注意到工作目录错误。对我来说是syswow64。PDF2SWF没有创建临时文件的权限。我在ProcessStartInfo中设置了工作目录属性,现在它工作得很好。

您将工作目录设置为什么?你有什么可以分享的示例代码吗?我相信我已经找到了,为了澄清Tomq的回答,你需要将ProcessStartInfo.WorkingDirectory指向你的PDF文件所在的位置。例如,我的PDF被上传到C:\FlexPaper\PDFs,所以我刚刚添加了proc.StartInfo.WorkingDirectory=@“C:\FlexPaper\PDFs”;