GroupDocs.Conversion for .NET 17.8.0 Release Notes

Major Features

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

  • Hide comments from Cells documents
  • Option to convert specific pages (e.g. 1,3,5) from source document
  • Simplifying the generated HTML markup
  • Fixed bug with fixed layout when converting to HTML

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET-1999Hide comments for Cells documentsNew Feature
CONVERSIONNET-1984Implement possibility to convert specific pagesNew Feature
CONVERSIONNET-2003Simplify the generated HTML markupImprovement
CONVERSIONNET-2020Converting to Html with SaveOptions.FixedLayout=false always produce fixed layout html conversionBug

Public API and Backward Incompatible Changes

How to hide comments when converting from Cells

const string sourceFileName = "sample.xlsx"; //TODO: Put the source filename here
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions
{
    OutputType = OutputType.String,
    HideComments = true
};
var result = conversionHandler.Convert<string>(sourceFileName, options);

How to convert specific pages from source document

const string sourceFileName = "sample.docx"; //TODO: Put the source filename here with more than 5 pages
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions
{
    OutputType = OutputType.String,
    ConvertPages = new List<int> { 1, 3, 5}
};
var result = conversionHandler.Convert<string>(sourceFileName, options);

How to get simplified markup when converting to HTML

const string sourceFileName = "sample.docx"; //TODO: Put the source filename here
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new HtmlSaveOptions
{
    OutputType = OutputType.String,
    FixedLayout = false
};
var result = conversionHandler.Convert<string>(sourceFileName, options);