Convert E-Mail with attachments to PDF & same attachment names

Hi, I have an email (M1.eml) with a Word document (A.docx) and an email (M2.msg) attached. The attached email (M2.msg) that has two Word documents (A.docx and B.docx) attached.

M1.eml

  • A.docx
  • M2.msg
    • A.docx (same filename but different content)
    • B.docx

I want to convert everything to PDF and need the email-structure in the end. After converting with

EmailLoadOptions loadOptions = new EmailLoadOptions();
loadOptions.setConvertOwner(true);
loadOptions.setConvertOwned(true);
loadOptions.setDepth(2);

I get 5 PDF streams/files “flatten”. How can I determine which A.docx became which PDF? Apart from the sourceFileName, I don’t get any additional information about the source in SaveDocumentStreamForFileType or ConvertedDocumentStream. (i.e. no Content-ID, no length, no source stream that I could use to create a hash code, etc.)

Does anyone have an idea?

@claas.ruschmeyer
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): CONVERSIONJAVA-2471

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.