{
ProcessStartInfo ProcessStartInfo=new ProcessStartInfo ();
ProcessStartInfo. FileName=sPdfToolPath;
ProcessStartInfo. WorkingDirectory=Path. GetDirectoryName (sPdfToolPath);
ProcessStartInfo. UseShellExecute=false;
ProcessStartInfo. CreateNoWindow=true;
ProcessStartInfo. RedirectStandardInput=true;
ProcessStartInfo. RedirectStandardOutput=true;
ProcessStartInfo. RedirectStandardError=true;
ProcessStartInfo. The Arguments=sArgument;
The Process p=Process. Start (sPdfToolPath);
P. tartInfo=processStartInfo;
P. tart ();
P.W aitForExit ();
FileStream fs=new FileStream (sSavePath + "\ " + sFileName, FileMode. Open);
Byte [] file=new byte [fs. Length];
Fs. Read (file, 0, the file Length);
Fs. The Close ();
}
The catch (System. Exception ex)
{
Return the ex. The Message;
}
Perform to Process p=Process. The Start (sPdfToolPath); Here has not been able to convert to PDF direct flash across, actually no conversion success
CodePudding user response:
Clearly is for HTML, you get a static HTML page file,CodePudding user response:
SPdfToolPath addresses can you get what, you use "of" a text editor open the look, understand,CodePudding user response:
SPdfToolPath is wkhtmltopdf exe module Path, to get the Path is to perform component