日期:2014-05-17  浏览次数:20399 次

c# 将 PDF文件转换为SWF文件的问题
string appPath = @"C:\Program Files\SWFTools\pdf2swf.exe ";
  string outPath = Server.MapPath("~/Templates/Services.pdf");
  string swfPath = Server.MapPath("~/Templates/Services.swf");
  string param = string.Format("{0} -o {1}", outPath, swfPath); // 合并需要的参数信息。
  System.Diagnostics.Process p = new System.Diagnostics.Process();
  p.StartInfo.FileName = appPath; // 赋值进程要执行的应用程序。
  p.StartInfo.Arguments = param; // 赋值应用程序可用参数。
  p.StartInfo.UseShellExecute = false;
  p.StartInfo.RedirectStandardInput = false;
  p.StartInfo.RedirectStandardOutput = false;
  p.StartInfo.RedirectStandardError = false;
  p.StartInfo.CreateNoWindow = true; // 是否创建显示窗口。
  try
  {
  bool IsStart = p.Start(); // 开始执行程序,如果执行成功返回True,否则False。
  p.WaitForExit(); // 等待关联进程退出。
  p.Close(); // 关闭进程。
  }
  catch (Exception ex)
  {
  throw ex;
  }
  Response.Write("完成。");  



此代码执行不报错,但没创建SWF文件,不知道为什么,有哪位高手能帮我指点?

------解决方案--------------------
不懂,帮顶。。别沉了
------解决方案--------------------
帮顶。。。。
------解决方案--------------------
探讨

FlashPaper

C# code

public static void ConvertPdfToSwf(HttpRequest reqeust, String styFileName, String[] dataFileNames, String outputFileFullName)
{
try
{ String flashPrinter = String.Concat(……