GroupDocs.Conversion for .NET 22.1 Release Notes

Major Features

There are 5+ features, improvements and bug-fixes in this release, most notable are:

  • Introduced fluent syntax
  • Converting specified sheets from an excel file
  • Improved conversion quallity from SVG

Full List of Issues Covering all Changes in this Release

KeyCategorySummary
CONVERSIONNET‑5001FeatureImplement fluent syntax when setting conversion options
CONVERSIONNET‑5025FeatureConverting specified sheets in an excel file
CONVERSIONNET‑5078ImprovementImprove svg to image conversion quality
CONVERSIONNET‑4812FixHow to preserve hyperlinks
CONVERSIONNET‑4819FixPDF to DOCX conversion throws exception
CONVERSIONNET‑4895FixEML to PNG conversion issue
CONVERSIONNET‑4999FixHTML to PDF conversion - output doesn’t show controls properly
CONVERSIONNET‑5000FixIssue in resizing JPG
CONVERSIONNET‑5045FixDWG to PNG conversion - output is trimmed
CONVERSIONNET‑5047FixSkiaSharp throws unhandled exception

Public API and Backward Incompatible Changes

  1. Introduced fluent syntax

    var converter = new Converter();
    
    converter.Load("sample.docx")
             .ConvertTo("converted.pdf")
             .Convert();
    
    converter.WithSettings(() => new ConverterSettings())
        .Load("sample.pdf").WithOptions(new PdfLoadOptions())
        .ConvertTo("converted.docx").WithOptions(new WordProcessingConvertOptions())
        .OnConversionCompleted(convertedDocumentStream => { })
        .Convert();
    
    converter.Load("sample.pdf").WithOptions(new PdfLoadOptions())
        .ConvertByPageTo((page => new FileStream($"converted-{page}.docx", FileMode.Create))).WithOptions(new WordProcessingConvertOptions())
        .OnConversionCompleted((page, stream) => {})
        .Convert();
    
    converter.Load("sample.pdf").GetPossibleConversions();
    converter.Load("sample.pdf").GetDocumentInfo();
    converter.Load("sample.pdf").WithOptions(new PdfLoadOptions()).GetPossibleConversions();
    converter.Load("sample.pdf").WithOptions(new PdfLoadOptions()).GetDocumentInfo();
    
  2. Introduced new property in class SpreadsheetLoadOptions

    /// <summary>
    /// Sheet name to convert
    /// </summary>
    public IList<string> Sheets { get; set; }