I’m trying to save e-mail body to PDF, which works.
- Your input email file
- Aspose.Email generated MHTML file
- Aspose.Words generated PDF file showing the undesired behavior
- Please attach your expected PDF document showing the desired output here for our reference. You can create expected document from MHTML using Microsoft Word.
- Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.
Just create an e-mail with inline images. These will be translated to LinkedResources.
For the moment it is possible to add/delete items from the list of LinkedResources, but that doesn’t change anything at the output side. The BodyHtml property from the MailMessage object will keep a reference to the specific ContentId.
This will result in a grey box for deleted content (removed from LinkedResources) or a ‘no show’ for added content (add to LinkedResources).
I Actually see no viable use for the ability to add/remove items from the LinkedResources if there is no API-way to create/change/delete them from the output.
I now resolved it by changing the BodyHtml property of the MailMessage object myself prior to generating the output… I can even replace it with a text/image placeholder…
Maybe this functionality can be added to the API?