GroupDocs.Conversion for .NET 18.3 Release Notes

Major Features

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

  • Specific options for converting CSV documents
  • Default zoom setting for Cells, Words, Slides
  • Setting for default font to replace all missing fonts  when converting from Words and Cells
  • Bug fixes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
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‑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‑2304XPS to PDF conversion failedFix

Public API and Backward Incompatible Changes

Getting document info to detect page orientation for the supported formats

Introduced new property PageOrientation in DocumentInfo class

/// <summary>
/// Get page orientation
/// </summary>
public PageOrientationType PageOrientation { get; }

Usage

var documentInfo = conversionHandler.GetDocumentInfo("source.docx");
Console.Write(documentInfo.PageOrientation);

Set default font to replace all missing fonts when converting Cells document

Introduced new property DefaultFont in CellsLoadOptions class

/// <summary>
/// Default font for Cells document. The following font will be used if a font is missing.
/// </summary>
public string DefaultFont { get; set; }

Usage

var config = new ConversionConfig();
var conversionHandler = new ConversionHandler(config);
 
var loadOptions = new CellsLoadOptions();
loadOptions.DefaultFont = "Verdana";
 
var saveOptions = new PdfSaveOptions();
 
var convertedDocument = conversionHandler.Convert("source.xlsx", loadOptions, saveOptions);

Set default font to replace all missing fonts when converting Words document

Introduced new property DefaultFont in WordsLoadOptions class

/// <summary>
/// Default font for Words document. The following font will be used if a font is missing.
/// </summary>
public string DefaultFont { get; set; }

Usage

var config = new ConversionConfig();
var conversionHandler = new ConversionHandler(config);
 
var loadOptions = new WordsLoadOptions();
loadOptions.DefaultFont = "Verdana";
 
var saveOptions = new PdfSaveOptions();
 
var convertedDocument = conversionHandler.Convert("source.docx", loadOptions, saveOptions);

Show watermark behind the text

Introduced new property Background in WatermarkOptions class

/// <summary>
/// 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.
/// </summary>
public bool Background { get; set; }

Usage

var saveOptions = new PdfSaveOptions();
saveOptions.WatermarkOptions.Background = true;