Hi,
This code is not convert pdf to html. How to solve.Please advise sir!
I need pdf to html converter using c#.
//Get the File Name. Remove space characters from File Name.
string fileName1= file.FileName.Replace(" ", string.Empty);
//Save the PDF file.
string inputPath = Server.MapPath("~/Output/") + Path.GetFileName(fileName1);
file.SaveAs(inputPath);
//Set the HTML file path.
string outputPath = Server.MapPath("~/Output/") + Path.GetFileNameWithoutExtension(fileName1) + ".html";
ProcessStartInfo startInfo = new ProcessStartInfo();
//Set the PDF File Path and HTML File Path as arguments.
startInfo.Arguments = string.Format("{0} {1}", inputPath, outputPath);
//Set the Path of the PdfToHtml exe file.
startInfo.FileName = Server.MapPath("~/PdfToHtml/pdftohtml.exe");
//Hide the Command window.
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.CreateNoWindow = true;
//Execute the PdfToHtml exe file.
using (Process process = Process.Start(startInfo))
{
process.WaitForExit();
}