GroupDocs.Conversion for .NET 23.10 Release Notes
There are 5+ improvements, and bug fixes in this release.
Full list of changes in this release
Key | Category | Summary |
---|---|---|
CONVERSIONNET-6315 | Enhancement | Differentiate with the Sheet Names when converted excel to html |
CONVERSIONNET-6403 | Bug | TIF to PDF conversion issue in .NET Core |
CONVERSIONNET-6257 | Bug | Word table is not converted properly |
CONVERSIONNET-6335 | Bug | CSV to PDF conversion issue |
CONVERSIONNET-5602 | Bug | Formular not evaluated on certain XLSM when converting to PDF in .NET |
CONVERSIONNET-6394 | Bug | Could not load file or assembly error when converting pptx to jpg |
CONVERSIONNET-5967 | Bug | PDF to CSV conversion cells issue |
CONVERSIONNET-6384 | Bug | TIFF to PDF conversion issue in .NET 6.0 |
CONVERSIONNET-6266 | Bug | Problem Converting Files to PDF and getting Stream Using GroupDocs.Conversion in .NET 6 |
Major features
- Retrieving sheets names from a spreadsheet
- Converting sheets by name from a spreadsheet
- Improved TIFF to PDF conversions
Public API and backward incompatible changes
The following methods of the Converter class are removed
public void Convert(Func<Stream> document, Action<Stream, string> documentCompleted, ConvertOptions convertOptions)
public void Convert(Func<Stream> document, Action<Stream, string> documentCompleted, Func<string, FileType, ConvertOptions> convertOptionsProvider)
public void Convert(Func<FileType, Stream> document, Action<Stream, string> documentCompleted, ConvertOptions convertOptions)
public void Convert(Func<FileType, Stream> document, Action<Stream, string> documentCompleted, Func<string, FileType, ConvertOptions> convertOptionsProvider)
Use the methods with documentCompleted delegate
Action<string, FileType, Stream>
. The parameters are respectively source file name, target file type, and converted stream.The following methods of the Converter class are removed
public void Convert(Func<int, Stream> document, Action<int, Stream, string> documentCompleted, ConvertOptions convertOptions)
public void Convert(Func<int, Stream> document, Action<int, Stream, string> documentCompleted, Func<string, FileType, ConvertOptions> convertOptionsProvider)
public void Convert(Func<int, FileType, Stream> document, Action<int, Stream, string> documentCompleted, ConvertOptions convertOptions)
public void Convert(Func<int, FileType, Stream> document, Action<int, Stream, string> documentCompleted, Func<string, FileType, ConvertOptions> convertOptionsProvider)
Use the methods with documentCompleted delegate
Action<string, FileType, int, Stream>
. The parameters are respectively source file name, target file type, page number that is converted, and converted stream.Introduced new property Worksheets in SpreadsheetDocumentInfo class.
How to retrieve a spreadsheet sheets names
const string source = "sample.xlsx"; var sheets = Array.Empty<string>(); using (var converter = new Converter(source)) { var documentInfo = (SpreadsheetDocumentInfo) converter.GetDocumentInfo(); sheets = documentInfo.Worksheets; }
Convert a spreadsheet by specifying names of the sheets to be converted
const string source = "sample.xlsx"; using (var converter = new Converter(source, () => new SpreadsheetLoadOptions { Sheets = new [] { 'Sheet1', 'Sheet3' } })) { var options = new WebConvertOptions(); converter.Convert("converted.html", options); }