In a .NET application, attempting to convert the attached Powerpoint fails with the following conversion code.
ppt file.zip (284.5 KB)
using var converter = new Converter(() => ms);
var convertOptions = new PdfConvertOptions();
converter.Convert(convertOptions, (Action<ConvertedContext>)(context =>
{
context.ConvertedStream.CopyTo(fs);
}));
It fails with the following error message
Conversion from () to pdf (PDF) is not supported.
I can get around this by getting some default load options using this code. However it was my understanding I could convert without these?
LoadOptions GetLoadOptions(LoadContext context)
{
var possibleConversions = Converter.GetPossibleConversions(Path.GetExtension(fileToConvert.FileName));
var loadOptions = possibleConversions.LoadOptions;
return loadOptions;
}