GroupDocs.Conversion for .NET 23.2 Release Notes

There are 10+ features, improvements and bug-fixes in this release.

Full list of changes in this release

KeyCategorySummary
CONVERSIONNET‑5803FeatureImplement conversion to MOBI format
CONVERSIONNET‑5833FeatureSpecify converted worksheets by indexes
CONVERSIONNET‑5810EnhancementRefactor Conversion and replace delegates with Func
CONVERSIONNET‑5837EnhancementDo not process hidden worksheets when convert from spreadsheet
CONVERSIONNET‑5825EnhancementImprove FileType from Stream detection
CONVERSIONNET‑5808EnhancementReturn meaningful data in DocumentInfo classes that have IEnumerable properties when accessed through the indexer
CONVERSIONNET‑5831FixError while Converting XLSX to PDF: Same key added
CONVERSIONNET‑5823FixConverting Numbers to Pptx produce broken result
CONVERSIONNET‑5794FixConverting particular Xlsx to Pptx produce broken result
CONVERSIONNET‑5341FixDWG to PDF conversion - Its messing the image
CONVERSIONNET‑5835FixXSLX to PDF: #REF! instead of 0
CONVERSIONNET‑5836FixXLS to PDF: ConversionNotSupportedException

Major features

  • Conversions to MOBI format.
  • New load options when converting spreadsheets - Specify desired sheets by their index number.
  • Simplified method signatures with generic delegate types.
  • Improved file type detection from a stream.

Conversion to MOBI format

To convert any of the supported file types to the MOBI file type, just specify it in the Format property of the EBookConvertOptions class instance:

// Load the source PDF file
using (Converter converter = new Converter("sample.pdf"))
{
    // Set the convert options for MOBI format
    var options = new EBookConvertOptions {
        Format = EBookFileType.Mobi
    };
    // Convert to MOBI format
    converter.Convert("converted.mobi", options);
}

Specify converted worksheets by their indexes

When converting spreadsheets, you can now specify the desired sheets by their zero-based index numbers. To do this use the SheetIndexes property of the SpreadsheetLoadOptions class:

Contracts.Func<LoadOptions> getLoadOptions = () => new SpreadsheetLoadOptions
{
    SheetIndexes = new[] { 0, 2 },
    OnePagePerSheet = true
};
using (Converter converter = new Converter("sample.xlsx", getLoadOptions))
{
    PdfConvertOptions options = new PdfConvertOptions();
    converter.Convert("converted.pdf", options);
}

Public API and backward incompatible changes

  1. Introduced new SheetIndexes property of the SpreadsheetLoadOptions class:

    /// <summary>
    /// List of sheet indexes to convert.
    /// The indexes must be zero-based
    /// </summary>
    public IList<int> SheetIndexes { get; set; }