swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] In PDF2SWF not able to convert more than 2.8 Mb .p


From: Matthew Richer
Subject: Re: [Swftools-common] In PDF2SWF not able to convert more than 2.8 Mb .pdf file by command line in ASP.net web application
Date: Fri, 11 Oct 2013 14:27:45 -0400

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: address@hidden [mailto:address@hidden On Behalf Of Avinash Singh
Sent: October-09-13 6:03 AM
To: address@hidden
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

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]