当前位置:编程学习 > C#/ASP.NET >>

pdf2swf.exe 转化后中文部分变为空白..求大神指点迷津

public void ConvertToSWF(string oldFile, string swfFile)
        {
             string path = HttpRuntime.AppDomainAppPath.ToString();
             string command = path + "swftool\\pdf2swf.exe " + "-qG -s disablelinks -s languagedir=\"C:\\xpdf\\xpdf-chinese-simplified\" " + 
                 oldFile + " -o " + swfFile;
             try  
                {  
  
                    System.Diagnostics.Process p = new Process();  
  
                    p.StartInfo.FileName = "cmd";  
  
                    p.StartInfo.UseShellExecute = false;  
  
                    p.StartInfo.RedirectStandardInput = true;  
  
                    p.StartInfo.RedirectStandardOutput = true;  
  
                    p.StartInfo.RedirectStandardError = true;  
                   // p.StartInfo.Arguments = "/c " + command;
  
                    p.StartInfo.CreateNoWindow = true;  
  
                    p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;  
  
                    p.Start();  
  
                    string strOutput = null;
                   

                    p.StandardInput.WriteLine(command);  
  
                    p.StandardInput.WriteLine("exit");  
  
                    strOutput = p.StandardOutput.ReadToEnd();  
  
                   // Console.WriteLine(strOutput);  
  
                    p.WaitForExit();  
  
                    p.Close();

                    lbl.Text = "success" + strOutput ;
  
                }  
  
                catch (Exception ex)  
                {

                    lbl.Text = ex.ToString();
  
                }  

          

        }

--------------------编程问答-------------------- 以下是出现的错误:Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0>G:\Demo\Demo\swftool\pdf2swf.exe -qG -s disablelinks -s languagedir="C:\xpdf\xpdf-chinese-simplified" G:\Demo\Demo\Files\dsfd.pdf -o G:\Demo\Demo\Files\9d193446-e7d2-4ab5-b459-b9f8cf00ebdd.swf
ERROR Internal error: No current splash fontinfo
ERROR Internal error: No current splash fontinfo 
ERROR Internal error: No current splash fontinfo 
ERROR Internal error: No current splash fontinfo 
ERROR Internal error: No current splash fontinfo 
ERROR Internal error: No current splash fontinfo 
....

ERROR Invalid charid 3927 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 4582 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 14643 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 5607 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 14936 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 4582 for font 022f4ac0 (0 characters) 
ERROR Invalid charid 1152 for font 022f4ac0 (0 characters) 
..... --------------------编程问答-------------------- 兄弟解决没有啊。。我也碰到同样的问题。。。
补充:.NET技术 ,  其他语言
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,