Greetings,
I’m having a problem with generating PDF document from WORD document on .NET Core 3.1 running on Linux
When generating PDF missing images。
Code:
public static bool WordToPdf(string filePath, string outPath)
{
try
{
License license = new License();
license.SetLicense("HY.Aspose.Word.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;
}
}
Environment:
- .NET Core SDK 3.1
- System : Linux centos7
- Aspose.Words: 22.4.0 (NuGet package)
file.zip (162.6 KB)