Hi guys!
We are struggling with vertically overlapped text in PDFs created out of emails.
Code is very simple (basically from your example: Saving an Email as PDF|Documentation):
Aspose.Email.MailMessage mailMsg = Aspose.Email.MailMessage.Load(@"c:\temp\email3.eml");
MhtSaveOptions mhtSaveOptions = new MhtSaveOptions();
mhtSaveOptions.MhtFormatOptions = MhtFormatOptions.WriteHeader;
MemoryStream ms = new MemoryStream();
mailMsg.Save(ms, mhtSaveOptions);
var loadOptions = new Aspose.Words.Loading.LoadOptions();
loadOptions.LoadFormat = LoadFormat.Mhtml;
var document = new Aspose.Words.Document(ms, loadOptions);
var saveOptions = new Aspose.Words.Saving.PdfSaveOptions();
document.Save(@"c:\temp\email3.pdf", saveOptions);
Unfortunately i’m not able to upload the EML.
Any idea how EML could be uploaded here?
But if you open the attached PDF, you can clearly see something like this:
email3.pdf (105.6 KB)
“C” and “F” letter bounding boxes verticaly overlapping significantly.
And here is a visualization of PDF text layer bounding boxes:
For sure it has something to do with fonts used on email.
But do you have any idea how such vertical text overlap could be avoided or limited?
Hope it’s somehow clear.
Thank you!