How to get list of Fonts used in email using aspose JAVA API

Hello,

I have a requirement to list down all the fonts used in email file (.msg files). I can able to get fonts used in other document types like doc, ppt, xlsx. But I am not able to find the API to get fonts used in email file.

I tried below way but its not working

InputStream fstream = Files.newInputStream(FilePath);
MailMessage eml = MailMessage.load(fstream);

ByteArrayOutputStream emlStream = new ByteArrayOutputStream();
MhtSaveOptions saveOptions = new MhtSaveOptions();
eml.save(emlStream, saveOptions );
com.aspose.words.LoadOptions lo = AsposeConfig.getWordsLoadOptions();
lo.setLoadFormat(LoadFormat.MHTML);
Document doc = new Document(new ByteArrayInputStream(emlStream.toByteArray()), lo);
com.aspose.words.FontInfoCollection listOffontInfo = doc.getFontInfos(); // Here I get size zero.

Please let me know correct way to get fonts used in email file.

@dnyandevp

Unfortunately, Aspose.Email does not provide this feature. We have logged your requirement in our issue tracking system as EMAILJAVA-35131. You will be informed via this forum thread once there is an update available on it.

We apologize for your inconvenience.

@dnyandevp

We have closed the ticket EMAILJAVA-35131 with Won’t Fix resolution. We can prepare only HTML on our side. The HTML can be converted to Word document using Aspose.Words. You can use Aspose.Words to achieve your requirements.