I get the below error we do that. "ToPDF cannot convert this file format on this platform" File is available at the locations. I am simply trying to convert a html file to pdf.
bool err = false;
try
{
PDFDoc pdfdoc = new PDFDoc();
string input_file_path = Path.Combine(Directory.GetCurrentDirectory(), "test.html");
pdftron.PDF.Convert.ToPdf(pdfdoc, input_file_path);
pdfdoc.Destroy();
}
catch (Exception e)
{
err = true;
}