GroupDocs.Conversion for .NET 24.4 Release Notes
There are 20+ features, improvements, and bug fixes in this release.
Full list of changes in this release
Key | Category | Summary |
---|---|---|
CONVERSIONNET-6797 | Feature | Options to customize requests to external resources when converting from web document |
CONVERSIONNET-6809 | Feature | Add support for Zstandard (Zstd) archive format |
CONVERSIONNET-6801 | Feature | Add page number in the converted PDF |
CONVERSIONNET-6827 | Enhancement | Replace .net standard 2.1 target with .net6.0-windows target |
CONVERSIONNET-6810 | Enhancement | Improve WordProcessing to WebP conversion |
CONVERSIONNET-6814 | Enhancement | Improve conversions from HTML |
CONVERSIONNET-6831 | Enhancement | Saving out native constituent files while performing GroupDocs.Conversion on container file formats? |
CONVERSIONNET-5092 | Enhancement | Change comma delimited to another character |
CONVERSIONNET-6823 | Enhancement | Add Diagram conversion support to cross-platform package |
CONVERSIONNET-5243 | Bug | DWG to PDF conversion issue |
CONVERSIONNET-6790 | Bug | Border across table is not displayed in output RTF |
CONVERSIONNET-6789 | Bug | style=“display:none |
CONVERSIONNET-6788 | Bug | Border is not displayed in the converted RTF |
CONVERSIONNET-6660 | Bug | HTML to DOCX Conversion loses the Formatting |
CONVERSIONNET-4741 | Bug | Setting font path |
CONVERSIONNET-4802 | Bug | TIFF to PDF conversion issue |
CONVERSIONNET-5099 | Bug | Email to PNG conversion issue |
CONVERSIONNET-4591 | Bug | Exception when using NoteLoadOptions.FontSubstitutes |
CONVERSIONNET-6807 | Bug | Regression: PPTX to PDF: GroupDocs.Conversion.Exceptions.GroupDocsConversionException: Could not find a part of the path ‘/usr/share/fonts’. |
CONVERSIONNET-6803 | Bug | EML to PDF: Converted file throws exception when opened |
CONVERSIONNET-6806 | Bug | File types of owned documents are detected incorrectly when converting from a container document |
CONVERSIONNET-6408 | Bug | Converting a tiff with different horizontal and vertical resolutions to PDF produces stretched result |
CONVERSIONNET-6834 | Bug | Regression: PPTX to PDF: GroupDocs.Conversion.Exceptions.GroupDocsConversionException: Could not find a part of the path ‘/usr/share/fonts’. |
CONVERSIONNET-6793 | Bug | When you open an RTF file converted with break-all specified in CSS, it will be displayed surrounded by [] |
Major features
- Replaced .net standard 2.1 target with .net6.0-windows target
- New option to add page numbering when converting from word and pdf
- Added support for Zstandard (Zstd) archive format
- Extended options to customize requests to external resources when convert from a web document
- Improved conversions from HTML
- Option to customize the separator character when convert to delimited format
- Extended load options delegate which provide the original stream content
Public API and backward incompatible changes
Introduced two new constructors to Converter class - Converter(Func<Stream>, Func<string, FileType, Stream, LoadOptions>, Func<ConverterSettings>) and Converter(string, Func<string, FileType, Stream, LoadOptions>, Func<ConverterSettings>).
Usage:const string source = "sample.pst"; Func<string, FileType, Stream, LoadOptions> loadOptionsProvider = (string sourceFileName, FileType sourceFileType, Stream sourceStream) => { if (sourceFileType == EmailFileType.Pst) { return new PersonalStorageLoadOptions(); } var fileName = $"{sourceFileName}.{sourceFileType.Extension}"; using var fs = new FileStream(fileName, FileMode.Create); sourceStream.CopyTo(fs); return null; }; using (var converter = new Converter(source, loadOptionsProvider)) { var options = new PdfConvertOptions(); var i = 1; var convertOptionsProvider = (string sourceFileName, FileType sourceFileType) => new PdfConvertOptions(); var documentCompletedHandler = (string sourceFileName, FileType sourceFileType, Stream convertedStream) => { using var fs = new FileStream($"converted-{i++}.pdf", FileMode.Create); convertedStream.CopyTo(fs); }; converter.Convert(() => new MemoryStream(), documentCompletedHandler, convertOptionsProvider); }
In SpreadsheetConvertOptions is introduced a new property - Separator
Usage:const string source = "sample.xlsx"; using (var converter = new Converter(source)) { var options = new SpreadsheetConvertOptions { Format = SpreadsheetFileType.Csv, Separator = '|' }; converter.Convert("converted.csv", options); }
In WebLoadOptions are introduced two new properties - ConfigureHeaders and CredentialsProvider
Usage:const string source = "index.html"; using (var converter = new Converter(source, () => new WebLoadOptions { CredentialsProvider = (uri) => { return new NetworkCredential("user", "password"); }, ConfigureHeaders = (uri, headers) => { headers.Add("x-api-key", "111-222-333"); } })) { var options = new WordProcessingConvertOptions { Format = WordProcessingFileType.Docx }; converter.Convert("converted.docx", options); }
Removed obsolete properties
Width
andHeight
from PdfConvertOptions and WordProcessingConvertOptions