We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Embedded/inline logos are displaying as 'X' mark once converted from .eml to .pdf


I am converting .eml file to pdfA. but once it is converted logos or inline images are displaying as ‘X’ mark. i am using aspose 20.7 for email and pdf. Could you please help me getting inline logos. eml once converted to pdf.

Pls find the code snippet :

ByteArrayOutputStream stream = new ByteArrayOutputStream();
PdfSaveOptions options = new PdfSaveOptions();
try {

		MailMessage eml = MailMessage.load(docStream);
		// Save the Message to output stream in MHTML format
		ByteArrayOutputStream emlStream = new ByteArrayOutputStream();
		//eml = setOriginalMailAddressToPdf(eml, guid);
		eml.save(emlStream, SaveOptions.getDefaultMhtml());
		// Load the stream in Word document
		LoadOptions loadOptions = new LoadOptions();
		Document doc = new Document(new ByteArrayInputStream(emlStream.toByteArray()), loadOptions);
		// or Save to stream
		doc.save(stream, options); 

Thanks in Advance.


I would suggest you to please try using latest Aspose.Email for Java 20.9 on your end. In case there is still an issue then please share the source file and generated output put reproducing the issue with us.