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
Key | Category | Summary |
---|---|---|
CONVERSIONNET‑5803 | Feature | Implement conversion to MOBI format |
CONVERSIONNET‑5833 | Feature | Specify converted worksheets by indexes |
CONVERSIONNET‑5810 | Enhancement | Refactor Conversion and replace delegates with Func |
CONVERSIONNET‑5837 | Enhancement | Do not process hidden worksheets when convert from spreadsheet |
CONVERSIONNET‑5825 | Enhancement | Improve FileType from Stream detection |
CONVERSIONNET‑5808 | Enhancement | Return meaningful data in DocumentInfo classes that have IEnumerable properties when accessed through the indexer |
CONVERSIONNET‑5831 | Fix | Error while Converting XLSX to PDF: Same key added |
CONVERSIONNET‑5823 | Fix | Converting Numbers to Pptx produce broken result |
CONVERSIONNET‑5794 | Fix | Converting particular Xlsx to Pptx produce broken result |
CONVERSIONNET‑5341 | Fix | DWG to PDF conversion - Its messing the image |
CONVERSIONNET‑5835 | Fix | XSLX to PDF: #REF! instead of 0 |
CONVERSIONNET‑5836 | Fix | XLS 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
Introduced new
SheetIndexes
property of theSpreadsheetLoadOptions
class:/// <summary> /// List of sheet indexes to convert. /// The indexes must be zero-based /// </summary> public IList<int> SheetIndexes { get; set; }