Hi Team,
On transforming an EML file to PDF, the output is obtained with incorrect font. Following code was used for processing:
MailMessage message = MailMessage.load("C:\\Users\\Administrator\\Desktop\\HindiFont.eml"); MhtSaveOptions mhtSaveOptions = new MhtSaveOptions(); mhtSaveOptions.setMhtFormatOptions(MhtFormatOptions.WriteHeader | MhtFormatOptions.HideExtraPrintHeader|MhtFormatOptions.DisplayAsOutlook); String mhtFile = "C:\\Users\\Administrator\\Desktop\\Hindi_Font.mhtml"; message.save(mhtFile, mhtSaveOptions); HtmlLoadOptions loadOptions = new HtmlLoadOptions(); loadOptions.setLoadFormat(LoadFormat.MHTML); Document document = new Document(mhtFile,loadOptions); document.save("C:\\Users\\Administrator\\Desktop\\HindiFont.pdf");
Attaching the input and outfput files here: Aspose.zip (75.0 KB)
Thanks,
Sumeet.