Naresh Babu Gopavaram

Naresh Babu Gopavaram

  • 1.5k
  • 248
  • 249.9k

convert pdf to swf

Apr 11 2011 4:55 AM
hi how to convert pdf to swf file i tried the following code but i am not getting swf file in my folder any one help me please ..........







int pageNumber = 1;
string fileName = "Files/1.pdf";

System.Diagnostics.Process p = new System.Diagnostics.Process();

p.StartInfo.UseShellExecute = false;

p.StartInfo.RedirectStandardOutput = true;

p.StartInfo.CreateNoWindow = true;

p.StartInfo.RedirectStandardError = true;

p.StartInfo.WorkingDirectory = HttpContext.Current.Server.MapPath("~");

p.StartInfo.FileName = HttpContext.Current.Server.MapPath("~/PDF2SWF/PDF2SWF.exe");

p.StartInfo.Arguments = "-F " + "\"" +HttpContext.Current.Server.MapPath("~/PDF2SWF/FONTS") + "\"" + " -p " + pageNumber + " " + fileName + " -o " + fileName + pageNumber + ".swf";

//Start the process

p.Start();
p.WaitForExit();
p.Close()

Answers (1)