GroupDocs.Conversion for Java 18.6 Release Notes

Major Features

There are 5+ new features, improvements and fixes in this regular monthly release. The most notable are:

  • Conversion from DWF
  • Improved caching
  • Conversion from PostScript
  • Option to convert specific range when converting from cells
  • Option for skipping blank rows and columns when converting from cells
  • Bug fixes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET‑1943Implement conversion from DWFNew Feature
CONVERSIONNET‑2322Convert specific range when converting cells documentNew Feature
CONVERSIONNET‑2344Implement conversion from PostScriptNew Feature
CONVERSIONNET‑2397Implement specific options for converting CSV documentsNew Feature
CONVERSIONNET‑2414Implement setting default zoom when converting to CellsNew Feature
CONVERSIONNET‑2417Implement setting default zoom when converting to WordsNew Feature
CONVERSIONNET‑2418Implement setting default zoom when converting to SlidesNew Feature
CONVERSIONNET‑2423Implement configurable option for setting a watermark as backgroundNew Feature
CONVERSIONNET‑2340Improve caching with provided LocalCacheDataHandlerImprovement
CONVERSIONNET‑2338Implement configuration option for selecting if blank rows and columns should be skipped when converting Cells documentImprovement
CONVERSIONNET‑2395Set zoom when converting to Pdf documentImprovement
CONVERSIONNET‑2406Update API for getting document info to detect page orientation for the supported formatsImprovement
CONVERSIONNET‑2392Set default font to replace all missing fonts when converting Words documentImprovement
CONVERSIONNET‑2394Set default font to replace all missing fonts when converting Cells documentImprovement
CONVERSIONNET‑2421Conversion improvement when converting Psd and Odg to PdfImprovement
CONVERSIONNET‑2284Unable to set watermark textFix
CONVERSIONNET‑2339Converting specific docx document fails with Value cannot be null, parameter trueTypeFontFix
CONVERSIONNET‑2341Fix failing conversion from OdgFix
CONVERSIONNET‑2342Fix failing conversion from IfcFix
CONVERSIONNET‑2324Just print area is getting converted, not the entire spreadsheetFix
CONVERSIONNET‑2304XPS to PDF conversion failedFix
CONVERSIONJAVA‑441LoadOptions doesn’t possess setDefaultFont methodFix
CONVERSIONJAVA‑455Just print area is getting converted, not the entire spreadsheetFix
CONVERSIONJAVA‑468Problem in converting large excel files. Is there a way to paginate the excel sheet?Fix

Public API and Backward Incompatible Changes

Introduced new property PageOrientation in DocumentInfo class

Get page orientation

public int getPageOrientation();
public void setPageOrientation(int value); 

Usage

DocumentInfo sut = conversionHandler.getDocumentInfo("source.docx");
int po = sut.getPageOrientation(); 

Introduced new property ConvertRange

Convert specific range when converting to other than cells format. Example: “D1:F8”

public String getConvertRange();
public void setConvertRange(String value); 

Usage

com.groupdocs.conversion.converter.option.ImageSaveOptions saveOptions = new com.groupdocs.conversion.converter.option.ImageSaveOptions();
saveOptions.getCellsOptions().setConvertRange("D1:F8"); 

Introduced new property SkipEmptyRowsAndColumns

Skips empty rows and columns when converting. Default is True

public boolean getSkipEmptyRowsAndColumns();
public void setSkipEmptyRowsAndColumns(boolean value); 

Usage

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.getCellsOptions().setSkipEmptyRowsAndColumns(false); 

Introduced new property DefaultFont in CellsLoadOptions class

Default font for Cells document. The following font will be used if a font is missing

public String getDefaultFont();
public void setDefaultFont(String value); 

Usage

ConversionConfig config = new ConversionConfig();
ConversionHandler conversionHandler = new ConversionHandler(config);
CellsLoadOptions loadOptions = new CellsLoadOptions();
loadOptions.setDefaultFont("Verdana");
PdfSaveOptions saveOptions = new PdfSaveOptions();
ConvertedDocument convertedDocument = conversionHandler.convert("source.xlsx", loadOptions, saveOptions);

Introduced new property DefaultFont in WordsLoadOptions class

Default font for Words document. The following font will be used if a font is missing

public String getDefaultFont();
public void setDefaultFont(String value);

Usage

ConversionConfig config = new ConversionConfig();
ConversionHandler conversionHandler = new ConversionHandler(config);
WordsLoadOptions loadOptions = new WordsLoadOptions();
loadOptions.setDefaultFont("Verdana");
PdfSaveOptions saveOptions = new PdfSaveOptions();
ConvertedDocument convertedDocument = conversionHandler.convert("source.docx", loadOptions, saveOptions);

Introduced new property Backgroud in WatermarkOptions class

Indicates that the watermark is stamped as background. If the value is true, the watermark is layed at the bottom. By default is false and the watermark is layed on top

public boolean getBackground();
public void setBackground(boolean value); 

Usage

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.getWatermarkOptions().setBackground(true);