EML to PDF conversion issue in Java

@Vaibhavj22 I actually work on this issue and update you as soon as possible.

@vsevolod.orefin
Is there any update on this issue? (eml, msg to pdf conversion issue.)

Thanks!

Hi @Vaibhavj22 , did you try 25.1?

Hi @vsevolod.orefin
We have tested version 25.1 with our application, and even with that, the issue of misplaced images and formatting problems during EML and MSG to PDF conversion persists.

Thanks

I’m checking and will update you today.

The fix will be included into GroupDocs Conversion for Java 25.2

Hi @vsevolod.orefin
We’re glad to see that the issue with EML and MSG to PDF conversion, as previously reported, has been resolved in version 25.2. Thank you for your continued support.
However, there’s still a minor issue with the output PDF. Specifically, while the right and top margins appear in the output PDF, the left and bottom margins are not applied as expected, and the content seems to be cut off on the left and bottom sides of the page.
Our expected result is for the output PDF to have equal margins applied on all sides (top, bottom, left, and right) with the same point values.
We’ve tried all available options, including PdfConvertOptions, PdfOptions, PdfFormattingOptions, PdfPageLayout, and PdfPageMode, but have not been able to achieve the desired result.
Could you please provide guidance or suggest a solution to address this margin issue?

Thank You!
Vaibhav

Hi @Vaibhavj22 , let me take a look and update you.

Hi @vsevolod.orefin
Upon review, we observed that the margin issue arises specifically when custom page height and width are applied during PDF conversion. This behaviour appears consistently after setting these dimensions. Could you kindly review this scenario to determine the cause or suggest a workaround?

Thank You!
Vaibhav

Thanks for the clarification, @Vaibhavj22
Let me update my example and test it

@Vaibhavj22 I reproduced the issue and investigate it.

Hi @vsevolod.orefin
We’re encountering a new issue with GroupDocs conversion. When converting an EML file to PDF, we receive the following font-related error:
Caused by: com.groupdocs.conversion.internal.c.a.pd.exceptions.FontEmbeddingException: Font embedding is prohibited because of font license restrictions (AvenirNextLTPro-Bold)

We have already tried the font-related configuration options provided in the documentation, but the error still persists.

Additionally, we are seeing the following error when using GroupDocs Viewer:

com.groupdocs.viewer.exception.GroupDocsViewerException:
com.groupdocs.viewer.internal.c.a.w.cR: The document appears to be corrupted and cannot be loaded.

These issues are occurring with the latest versions of the library, whereas everything works as expected with version 23.11.1.

Could you please advise on how to resolve these errors in the latest versions?

Thank You!
Vaibhav Jadhav

Hello @Vaibhavj22,

In order to assist you with resolving these issues, could you please share the sample code you’re using for both GroupDocs.Conversion and GroupDocs.Viewer, as well as the file that causes the problem? This would significantly speed up our investigation, as the cause of these errors is not immediately clear. We’ll be waiting for your response.

Here is a Redmine ticket for this issue: Saltov Redmine (related to margin issue)