GroupDocs.Conversion for Java 19.10 Release Notes

Major Features

This regular monthly release contains 10+ new features, 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
CONVERSIONJAVA-82Unable to generate Scalable/Adjustable HTMLBug
CONVERSIONJAVA-544Multi-line merged cell in excel renders only the first lineBug
CONVERSIONJAVA-705Cannot open an image exception when converting a Cells to ImageBug
CONVERSIONJAVA-732Ch.qos.logback conflict with GroupDocs.Conversion APIBug

Public API and Backward Incompatible Changes

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

    /**
     * <p>
     * Options for to Image conversion
     * </p>
     */
    public final class ImageSaveOptions extends SaveOptions {
        
        ...
         /**
     * Get flip mode
     * @return flip mode
     */
     public FlipModes getFlipMode() {
            ...
         
     /**
     * Set flip mode
     * @param flipMode flip mode
     */
     public void setFlipMode(FlipModes flipMode) {
            ...
        
     /**
     * Image brightness
     * @return brightness
     */
     public int getBrightness() {
            ...
        
     /**
     * Set brightness
     * @param brightness brightness
     */
     public void setBrightness(int brightness) {
            ...
        
     /**
     * Get image contrast
     * @return contrast
     */
     public int getContrast() {
         ...
        
     /**
     * Set image contrast
     * @param contrast contrast
     */
     public void setContrast(int contrast) {
         ...
        
     /**
     * Get image gamma
     * @return gamma
     */
     public float getGamma() {
           ...
        
     /**
     * Set image gamma
     * @param gamma gamma
     */
     public void setGamma(float gamma) {
        ...
        
    }
    

    Usage:

    ...
    ConversionConfig config = new ConversionConfig();
    ConversionHandler conversionHandler = new ConversionHandler(config);
    String source = "source.pdf";
    ImageSaveOptions saveOptions = new ImageSaveOptions();
    saveOptions.setFlipMode(ImageSaveOptions.FlipModes.FLIP_X);
    saveOptions.setBrightness(50);
    saveOptions.setContrast(50);
    saveOptions.setGamma(0.5f);
    ConvertedDocument convertedDocument = conversionHandler.convert(source, saveOptions);
    convertedDocument.save("result");    
    ...
    
  2. Removed HideComments from SaveOptions
    Replaced by HideComments property in CellsLoadOptions, SlidesLoadOptions or WordsLoadOptions classes

  3. Removed HidePdfAnnotations from SaveOptions
    Replaced by GroupDocs.Conversion.Options.Load.PdfLoadOptions.HidePdfAnnotations property

  4. Removed HideWordTrackedChanges from SaveOptions
    Replaced by GroupDocs.Conversion.Options.Load.WordsLoadOptions.HideWordTrackedChanges property