If you redirect standard output and standard error and the buffer becomes full, 
process will wait for the buffer to clear.  Since I don't see you reading the 
error or output buffers that would be my first check (i.e. read the buffers 
periodically, or capture the appropriate events and write the buffers out).


From: swftools-common-bounces+matthew.richer=conceptshare....@nongnu.org 
[mailto:swftools-common-bounces+matthew.richer=conceptshare....@nongnu.org] On 
Behalf Of Avinash Singh
Sent: October-09-13 6:03 AM
To: [email protected]
Subject: [Swftools-common] In PDF2SWF not able to convert more than 2.8 Mb .pdf 
file by command line in ASP.net web application

Hi,
I am using PDF2SWF tool to convert .pdf files to .swf files in my ASP.Net web 
application using PDF2SWF.exe by command line, but i am not able to convert 
more than 2.8 mb .pdf files. its continue executing, but its not converting 
files to .swf
Here is my ASP.Net code,

                string strSWFFile = pdfFileName.Split('.')[0];

                string strArguments = " \"Root/UploadFiles/" + pdfFileName + 
"\" -o \"Root/UploadFiles/" + strSWFFile + ".swf\"";

                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("~/Root/UploadFiles/pdf2swf.exe");

                p.StartInfo.Arguments = strArguments;

                //Start the process

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


please help me regarding this issue..

Thanks,
Avinash Singh

---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an 
existing subscription, please kindly point your favourite web browser 
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>

Reply via email to