1
Reply

convert pdf to swf

Naresh Babu Gopavaram

Naresh Babu Gopavaram

Apr 11 2011 4:55 AM
2.3k
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)