Issue with Email to Pdf - text does not respect the end of the page

We have two separate issues with converting .eml to .pdf. We were able to reproduce both in one email. Attached you will find the .eml file, the output .pdf and an image taken from within the viewer.

Bad Signature PDF.pdf (385.0 KB)

Viewer Defaults.png (218.3 KB)

Bad Signature Email.7z (766.9 KB)

  1. The first issue you can see by looking at the signature of the email in the pdf. The text is cut off and not wrapped. We are seeing this in examples of more prominent content of other emails at clients, but it is not an issue with all email body content. I suspect it may be related to embedded attachments.

  2. The second issue is that we have a requirement that the viewer render fit to the first page. When converting individual pdfs, your product has options to manage the initial visual appearance in viewers, however our flow largely involves merging where there seems to be no equivalent options. Whenever a subsequent page is wider than the first page it blows out the viewer.

Can you provide guidance on how to resolve these two issues? We have tried multiple different configurations available within the documentation and while we have been able to successfully manage other similar issues, we have been unable to get these resolved.

@JacobBodmer

Could you please provide more details about the configurations you have tried and the specific methods you are using for the conversion process?

@JacobBodmer

Please share following details and we’ll investigate this issue:

  • API version that you are using (e.g. 24.2)
  • Sample conversion code
  • Development environment details (e.g. OS, .NET version)

Currently using API version 25.3, in a .NET8 solution running on windows machines (various versions)
Code, though we’ve done lots of variants, below:

Func<LoadContext, LoadOptions> getLoadOptions = loadContext => new EmailLoadOptions
{
DisplayCcEmailAddress = true,
ConvertOwned = false,
ConvertOwner = true
};

using (var converter = new GroupDocs.Conversion.Converter(tempFile, getLoadOptions))
{
var options = new PdfConvertOptions();
options.PdfOptions.DocumentInfo.Title = fileName;
converter.Convert( _OutputFile, options);
}

1 Like

@JacobBodmer
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-7737

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.