Free Support Forum - aspose.com

Confusing behavior converting EMail to PDF with Attachment(s)

Hello,

if we convert an email with one or more image attachments to pdf, the attachments in the PDF will be placed at the top of the PDF.

Why?

The expected behavior is, that the Emal comes first, and at the end the attachments. Especially when some more big images are attached.

Is there a simple way to place image attachments AFTER the Email in the converted PDF?

Kind Regards,
Andy

@AStelzner

Can you please share the source file, generated output and desired output along with used sample code so that we may investigate it further to help you.

Hello Mudassir,

E-Mail: https://dataspace.livingdata.de/#/public/shares-downloads/4d3QQICR15dcF2BIJrW82GlHH417oGRX

PDF Output: https://dataspace.livingdata.de/#/public/shares-downloads/gR1TbrnpP9hgvmIkcS8vzNI7S1W4dqLa

Expected is, that the attachment in the PDF will be placed after (at the bottom) the mail itself.

Kind Regards,
Andy

@AStelzner

I can observed the image on top in generated PDF. Can you please share the working sample code along with which product versions you have used on your end. Please also share the intermediate MHTML file that you have obtained using Aspose.Email before exporting to PDF to see whether its Aspose.Email issue or not.

@mudassir.fayyaz

Here is a simple sample project with input mail, output pdf and output mhtml within the debug output folder. Version is the current (nuget).

https://dataspace.livingdata.de/#/public/shares-downloads/Qt05xy7IueLwXx3jdcvtxlkcfPPfeBoI

Kind Regards,
Andy

@AStelzner

I have created an issue with ID EMAILNET-39981 in our issue tracking system after observing the issue on my end. We will share the feedback with the you as soon as the issue will be resolved.