Hi Vikash21,
1. Please pass proper inputPath and output pathof the file.
2. Remove space from the file name.
3. pass proper path of the exe file.
C#
class Program
{
static void Main(string[] args)
{
string inputPath = @"C:\Users\Test\Desktop\PdfToHtml\MudassarKhan.pdf";
string outputPath = @"C:\Users\Test\Desktop\PdfToHtml\MudassarKhan.html";
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = string.Format("{0} {1}", inputPath, outputPath);
startInfo.FileName = @"C:\Users\Test\Desktop\PdfToHtml\pdftohtml.exe";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.CreateNoWindow = true;
using (Process process = Process.Start(startInfo))
{
process.WaitForExit();
}
}
}