GroupDocs.Conversion for .NET 23.7 Release Notes

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

Full list of changes in this release

KeyCategorySummary
CONVERSIONNET‑6192FeatureOptions to restrict external resources loading during conversion
CONVERSIONNET‑5995FeatureImplement conversion from OLM
CONVERSIONNET‑6195EnhancementImprove WordProcessing to EBook conversion
CONVERSIONNET‑6209EnhancementImprove Spreadsheet to XPS conversion
CONVERSIONNET‑6181EnhancementIntroduce AutoFitRows property in SpreadsheetLoadOptions class
CONVERSIONNET‑6156EnhancementImprove to image conversions
CONVERSIONNET‑6206EnhancementImprove WordProcessing to XPS conversion
CONVERSIONNET‑6211EnhancementImprove Email to PDF conversion
CONVERSIONNET‑6200EnhancementImprove conversion to EBook
CONVERSIONNET‑6048EnhancementServer side request
CONVERSIONNET‑6208EnhancementImprove Presentation to XPS conversion
CONVERSIONNET‑6197EnhancementImprove Note to Web conversion
CONVERSIONNET‑6207EnhancementImprove Diagram to XPS conversion
CONVERSIONNET‑6161FixThe “Wrap Text” property was not taken into account when converting from Excel to PDF format
CONVERSIONNET‑6160FixHTML to PDF margins not applied
CONVERSIONNET‑6105FixThe “Object reference not set to an instance of an object.” exception while converting DOCX to PDF
CONVERSIONNET‑6072FixSpecific XLSX to PDF conversion - output is not expected
CONVERSIONNET‑6035FixConvert Spreadsheet to one image only
CONVERSIONNET‑6202FixConversion performance issue
CONVERSIONNET‑6179FixWrong conversion when setting specific pages to be converted

Major features

  • Options to restrict external resources loading
  • Automatically fit rows when converting spreadsheets
  • Conversion from OLM
  • Improved presentation to XPS conversions
  • Improved image conversions

Options to restrict external resources loading

While loading web, presentations and word-processing documents, the GroupDocs.Conversion allows skipping of loading the external resources (images, audio, video, fonts, CSS, scripts, frameworks, and so on). In some cases, you may want to skip loading all or just some of the external resources during the conversion. For example, when these resources become unavailable.

To restrict the loading of external resources during the conversion, use the SkipExternalResources boolean property of the respective WebLoadOptions, PresentationLoadOptions, or WordProcessingLoadOptions class.

The following code sample shows how to skip loading of external resources while loading an HTML document:

using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
using GroupDocs.Conversion.Options.Load;

var loadOptions = new WebLoadOptions
{
    SkipExternalResources = true
};
using (var converter = new Converter("sample.html", () => loadOptions))
{
    var options = new PdfConvertOptions();
    converter.Convert("converted.pdf", options);
}

To skip loading most of the external resources, but still load some particular resources, use the WhitelistedResources property of the same classes. It accepts the string list containing the portions of URLs to be loaded while restricting the loading of other external resources.

The following code sample shows how to load the JPG and JPEG images and any resources from the example.com domain while restricting any other external resources:

using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
using GroupDocs.Conversion.Options.Load;

var loadOptions = new WebLoadOptions
{
    SkipExternalResources = true,    
    WhitelistedResources = new List<string>() { "jpg", "jpeg", "example.com" }
};
using (var converter = new Converter("sample.html", () => loadOptions))
{
    var options = new PdfConvertOptions();
    converter.Convert("converted.pdf", options);
}

Automatically fit rows when converting spreadsheets

To fit the row content of all rows while converting from a spreadsheet, use the AutoFitRows property of the SpreadsheetLoadOption class.

Contracts.Func<LoadOptions> getLoadOptions = () => new SpreadsheetLoadOptions
{
    AutoFitRows = true
};
using (Converter converter = new Converter("sample.xlsx", getLoadOptions))
{
    PdfConvertOptions options = new PdfConvertOptions();
    converter.Convert("converted.pdf", options);
}

Public API and backward incompatible changes

  1. Introduced AutoFitRows property in SpreadsheetLoadOption class which enables auto fit of all rows when converting from a spreadsheet.

  2. Introduced SkipExternalResources and WhitelistedResources properties in PresentationLoadOptions class. With this properties may control which external resources to be loaded and which skipped when converting from a presentation document.

  3. Introduced SkipExternalResources and WhitelistedResources properties in WordProcessingLoadOptions class. With this properties may control which external resources to be loaded and which skipped when converting from a wordprocessing document.

  4. Introduced SkipExternalResources and WhitelistedResources properties in WebLoadOptions class. With this properties may control which external resources to be loaded and which skipped when converting from a web document.