After Upgrade to GroupDocs.Conversion 23.10 the conversion from Excel to PDF running as a Windows Service fails. Running in a user context works fine. With 23.08 there is no such problem.
The stack trace of the conversion exception is as follows:
GroupDocs.Conversion.Exceptions.GroupDocsConversionException
HResult=0x80131500
Message=Exception has been thrown by the target of an invocation.
Source=GroupDocs.Conversion
StackTrace:
at n.()
at GroupDocs.Conversion.Converter.()
at GroupDocs.Conversion.Converter.Convert(Func`1 document, ConvertOptions convertOptions)
We convert the file with this logic:
var loadOptions = new new SpreadsheetLoadOptions
{
OnePagePerSheet = false,
AutoFitRows = true,
};
using var converter = new Converter(() => source, () => loadOptions);
var convertOptions = new PdfConvertOptions
{
Format = PdfFileType.Pdf,
PdfOptions = new PdfOptions
{
PdfFormat = PdfFormats.Default,
},
};
using var pdfStream = new MemoryStream();
converter.Convert(() => pdfStream, convertOptions);
Attached you will find a sample excel file.
We had to go back to version 23.08 since the new version does not work. Please make sure, a fix is available soon.
Fringeli_Sarah_27.09.1979_Wichtigste Messwerte_20231117T091840.zip (4.2 KB)