Rich Text MSG email with inline attachment shows missing file icon when converted to PDF

One prevalent use case of Rich Text format emails is to embed documents into table cells.
However, when converting such emails into PDF format, the document icons are converted to missing files “x” icons.

Sample MSG file richtext.msg attached:

richtext.zip (37.1 KB)

Original Rich Text email body:

image.png (18.5 KB)

Converted PDF email body:

image.png (27.0 KB)

Source code:

            GroupDocs.Conversion.Options.Convert.PdfConvertOptions options = new()
            {
                PdfOptions = new GroupDocs.Conversion.Options.Convert.PdfOptions
                {
                    PdfFormat = GroupDocs.Conversion.Options.Convert.PdfFormats.PdfA_2U
                }
            };

            using GroupDocs.Conversion.Converter converter = new(source);
            converter.Convert(source + ".pdf", options);

@jarrodwee

It seems that you are experiencing an issue where inline attachments in Rich Text format emails are showing as missing file icons when converted to PDF. This can occur due to how the conversion process handles embedded objects.

To address this issue, you might want to ensure that the conversion options you are using are correctly set up to handle attachments. Here’s a general approach you can take:

  1. Check Conversion Options: Make sure that the conversion options you are using support the inclusion of inline attachments. You are currently using PdfA_2U format, which is suitable for archiving but may have limitations regarding embedded objects.

  2. Update the Conversion Code: You can try modifying your conversion options to see if a different PDF format or additional settings help retain the inline attachments. Here’s an example of how you might adjust your code:

    GroupDocs.Conversion.Options.Convert.PdfConvertOptions options = new()
    {
        PdfOptions = new GroupDocs.Conversion.Options.Convert.PdfOptions
        {
            PdfFormat = GroupDocs.Conversion.Options.Convert.PdfFormats.Pdf, // Try using standard PDF format
            // Add any additional options here if necessary
        }
    };
    
    using GroupDocs.Conversion.Converter converter = new(source);
    converter.Convert(source + ".pdf", options);
    
  3. Test with Different MSG Files: If possible, test the conversion with different MSG files to see if the issue is consistent across all files or specific to certain ones.

  4. Consult Documentation: For more detailed guidance, refer to the official documentation on converting MSG files to PDF. It may provide insights into handling specific cases like inline attachments.

If the problem persists, consider reaching out to the support forum for further assistance, as they may have encountered similar issues and can provide more targeted help.

Sources:
[1]: Convert MSG to PDF | GroupDocs.Conversion .NET API - Aspose

@jarrodwee
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-7544

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi, checking in to confirm that this issue is reproducible by your team?

@jarrodwee

Yes, and we are already working on the fix.