GroupDocs.Conversion for .NET 23.6 Release Notes

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

Full list of changes in this release

KeyCategorySummary
CONVERSIONNET‑6152EnhancementImprove boot-up performance
CONVERSIONNET‑6127EnhancementExpose FluentConverter explicitly and separate it from the main converter class
CONVERSIONNET‑6125EnhancementExtend DocumentCompleted delegate with source filename and target file type
CONVERSIONNET‑4058EnhancementSet landscape mode when converting HTML to PDF
CONVERSIONNET‑6046FixGenerated HTML does not appear good in IOS (e.g. Safari)
CONVERSIONNET‑6000FixException when converting XLSM to PNG in .NET

Major features

  • Improved boot-up performance
  • Expose FluentConverter for explicit fluent syntax
  • Extended DocumentCompleted delegate with source fileName and target file type
  • Fixed conversions from XLSM to PNG

Public API and backward incompatible changes

  1. The following methods of the Converter class are now obsolete and will be removed in v23.9

    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)
    

    The changes are in the documentCompleted delegate.

    It has changed from Action<Stream, string> to Action<string, FileType, Stream>. The parameters are respectively source file name, target file type, and converted stream.

  2. The following methods of the Converter class are now obsolete and will be removed in v23.9

    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)
    

    The changes are in the documentCompleted delegate.

    It has changed from Action<int, Stream, string> to Action<string, FileType, int, Stream>. The parameters are respectively source file name, target file type, page number that is converted, and converted stream.

  3. All fluent methods are removed from the Converter class.

  4. Introduced a new FluentConverter class which allows fluent conversion setup.

    Fluent syntax before v23.6:

    new GroupDocs.Conversion.Converter()
      .Load("sample.pdf")
      .ConvertTo("converted.doc").WithOptions(new WordProcessingConvertOptions  
      {  
        Format = WordProcessingFileType.Doc  
      })
      .Convert();
    

    Fluent syntax from v23.6 and greater:

    FluentConverter
      .Load("sample.pdf")
      .ConvertTo("converted.doc").WithOptions(new WordProcessingConvertOptions  
      {  
        Format = WordProcessingFileType.Doc  
      })
      .Convert();