Hello GroupDocs Support Team,
I hope this message finds you well.
I am currently working with the GroupDocs Conversion library in C# to convert EML files to PDF. While the code provided works perfectly for most EML files, I have encountered an issue with two specific EML files.
The problem is that the conversion process for these two EML files results in an incomplete output PDF. Some content appears to be missing.
I have attached the problematic EML files for your reference:
EML Files.zip (16.4 KB)
For context, I am using the following code for the conversion:
var loadOptions = new EmailLoadOptions();
if (Extension.ToLower().ToString() == nameof(Enums.FileType.msg))
{
loadOptions.Format = EmailFileType.Msg;
}
else if (Extension.ToLower().ToString() == nameof(Enums.FileType.eml))
{
loadOptions.Format = EmailFileType.Eml;
}
loadOptions.ConvertOwned = false;
var converter = new GroupDocs.Conversion.Converter(inputfile, () => loadOptions);
// Set the convert options for PDF document
var convertOptions = new GroupDocs.Conversion.Options.Convert.PdfConvertOptions();
converter.Convert(outputFile, convertOptions);
I have ensured that the loadOptions
and convertOptions
are correctly configured.
I would greatly appreciate any assistance or insights you can provide to resolve this issue. If there are any additional details or logs needed, please let me know.
Thank you for your attention to this matter.