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.