public static bool WordToPdf(string filePath, string outPath)
{
try
{
License license = new License();
license.SetLicense("xxxxx.lic");
if (filePath.IsEmptyOrNull()) return false;
if (outPath.IsEmptyOrNull()) return false;
Document doc = new Document(filePath);
doc.Save(outPath,SaveFormat.Pdf);
return true;
}
catch (Exception e)
{
Console.WriteLine(e);
return false;
}
}
file.zip (162.6 KB)