.net C# pdf转swf格式 怎么获取存储路径
--------------------编程问答-------------------- 怎么没人顶呀?关注中…… --------------------编程问答-------------------- 关注版主更新中…… --------------------编程问答-------------------- string exe = HttpContext.Current.Server.MapPath("/Bin/pdf2swf.exe");("/Bin/pdf2swf.exe") 这个去哪儿弄呀? 求解 --------------------编程问答-------------------- 同问中,有人能做吗,分享下 --------------------编程问答--------------------
string cmd = @"C:/Program Files/SWFTools/pdf2swf.exe ";
string args = " -t " + fileFullPathName + " -o " + Server.MapPath("~/Upload/FileManager/") +
Split[0] + "_" + dtTime + ".swf" + " -s drawonlyshapes -s flashversion=9";
ConvertToSwf(cmd,args);//调用下面方法
/// <summary>
/// 转为PDF文件为SWF
/// </summary>
/// <param name="pdfPath">PDF文件的虚拟路径</param>
/// <param name="swfPath">SWF文件的保存路径</param>
public static void ConvertToSwf(string exe,string args)
{
try
{
//string exe = @"C:/Program Files/SWFTools/pdf2swf.exe ";
if (!File.Exists(exe))
{
throw new ApplicationException("Can not find: " + exe);
}
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = exe;
proc.StartInfo.Arguments = args;
proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.Start();
proc.WaitForExit();
proc.Close();
}
catch (Exception ex)
{
throw ex;
}
} --------------------编程问答--------------------
可以说清楚点不,不知道有些变量是做什么 的
补充:.NET技术 , ASP.NET