GroupDocs.Conversion for Java 18.7 Release Notes

Major Features

This is hotfix release:

  • Fixed: Missing properties in some options classes
  • When convert email to pdf the email header is hidden now.

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONJAVA-542MailOption to control conversions from emailNew Feature
CONVERSIONJAVA-544MSG to PDF conversion displays incorrect time in the headerBug

Public API and Backward Incompatible Changes

New EmailOptions in SaveOptions class

/// <summary>
/// Email specific convert options
/// </summary>
public EmailOptions getEmailOptions()

Usage

final String fileName = "source.msg";
 
ConversionConfig config = new ConversionConfig();
config.setOutputPath(".");
config.setStoragePath(".");
 
ConversionHandler handler = new ConversionHandler(config);
 
PdfSaveOptions options = new PdfSaveOptions();
EmailOptions emailOptions = options.getEmailOptions();
emailOptions.setDisplayHeader(true);
emailOptions.setDisplayEmailAddress(true);        
emailOptions.setDisplayFromEmailAddress(true);
emailOptions.setDisplayToEmailAddress(true);
emailOptions.setDisplayCcEmailAddress(true);
emailOptions.setDisplayBccEmailAddress(true);
         
ConvertedDocument result = handler.convert(fileName, options);
result.save("result.pdf");