GroupDocs.Conversion for .NET 19.3 Release Notes

Major Features

This regular monthly release contains 10+ improvements and bug fixes. Most notable are: 

  • Conversions from Cdr
  • Adjusting brightness, contrast, gamma when converting to image
  • Flip image option when converting to image
  • Converstions from Excel95/5.0

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET-2892Implement conversion from CdrFeature
CONVERSIONNET-2911Set color mode when converting to JpegFeature
CONVERSIONNET-2912Set compression mode when converting to JpegFeature
CONVERSIONNET-2925Implement option for adjusting brightness when converting to imageFeature
CONVERSIONNET-2926Implement option for adjusting contrast when converting to imageFeature
CONVERSIONNET-2927Implement option for adjusting gamma when converting to imageFeature
CONVERSIONNET-2928Implement option for flip image when converting to imageFeature
CONVERSIONNET-2891Support conversion from Excel95/5.0 XLS filesImprovement
CONVERSIONNET-2913Set image quality when converting to WebPImprovement
CONVERSIONNET-2914Extend DocumentInfo with new property IsPasswordProtectedImprovement
CONVERSIONNET-2965Remove HideComments from SaveOptionsImprovement
CONVERSIONNET-2966Remove HidePdfAnnotations from SaveOptionsImprovement
CONVERSIONNET-2967Remove HideWordTrackedChanges from SaveOptionsImprovement
CONVERSIONNET-2880ImageSaveOptions.JpegQuality issue when converting .pdf to .jpegBug
CONVERSIONNET-2916Multi-line merged cell in excel renders only the first lineBug
CONVERSIONNET-1937Arrows point in the wrong direction in ODP outputBug

Public API and Backward Incompatible Changes

Control brightness, contrast, gamma and flip when convert to image

/// <summary>
/// Options for to Image conversion
/// </summary>
public class ImageSaveOptions : SaveOptions
{
    ...
    /// <summary>
    /// Image flip mode
    /// </summary>
    public FlipModes FlipMode { get; set; }
 
    /// <summary>
    /// Adjust image brightness
    /// </summary>
    public int Brightness { get; set; }
     
    /// <summary>
    /// Adjust image contrast
    /// </summary>
    public int Contrast { get; set; }
     
    /// <summary>
    /// Adjust image gamma
    /// </summary>
    public float Gamma { get; set; }
    ...
}

Usage

...
var config = new ConversionConfig();
var conversionHandler = new ConversionHandler(config);
const string source = "source.pdf";
var saveOptions = new ImageSaveOptions {
    FlipMode = FlipModes.FlipX,
    Brightness = 50,
    Contrast = 50,
    Gamma = 0.5
};
var convertedDocument = conversionHandler.Convert(source, saveOptions);
convertedDocument.Save("result");
...

Removed HideComments from SaveOptions

Replaced by HideComments property in CellsLoadOptions, SlidesLoadOptions or WordsLoadOptions classes.

Removed HidePdfAnnotations from SaveOptions

Replaced by GroupDocs.Conversion.Options.Load.PdfLoadOptions.HidePdfAnnotations property

Removed HideWordTrackedChanges from SaveOptions

Replaced by GroupDocs.Conversion.Options.Load.WordsLoadOptions.HideWordTrackedChanges property