62,046
社区成员
发帖
与我相关
我的任务
分享
public bool ConvertPdfToSwf(string inFilename, string swfFilename)
{
bool isStart;
try
{
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(@"D:\FlashPaper2\FlashPrinter.exe");
startInfo.Arguments = string.Concat(Server.MapPath(inFilename), " -o ", Server.MapPath(swfFilename));
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = startInfo;
isStart = process.Start();
process.WaitForExit();
process.Close();
}
catch (Exception ex)
{
throw ex;
}
return isStart;
}
string savedocfile ="../../studyFile/PDF/" + docFile;
string saveswffile = "../../studyFile/PDF/" + saveswfFile;
bool bo= ConvertPdfToSwf(savedocfile, saveswffile);
public bool ConvertPdfToSwf(string inFilename, string swfFilename)
{
bool isStart;
//try
//{
string flashPrinter = Server.MapPath("../../FlashPaper2/FlashPrinter.exe");
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(flashPrinter);
startInfo.Arguments = string.Concat(Server.MapPath(inFilename), " -o ", Server.MapPath(swfFilename));
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = startInfo;
isStart = process.Start();
process.WaitForExit();
process.Close();
//}
//catch (Exception ex)
//{
// throw ex;
//}
return isStart;
}