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
Key | Category | Summary |
---|---|---|
CONVERSIONNET‑6192 | Feature | Options to restrict external resources loading during conversion |
CONVERSIONNET‑5995 | Feature | Implement conversion from OLM |
CONVERSIONNET‑6195 | Enhancement | Improve WordProcessing to EBook conversion |
CONVERSIONNET‑6209 | Enhancement | Improve Spreadsheet to XPS conversion |
CONVERSIONNET‑6181 | Enhancement | Introduce AutoFitRows property in SpreadsheetLoadOptions class |
CONVERSIONNET‑6156 | Enhancement | Improve to image conversions |
CONVERSIONNET‑6206 | Enhancement | Improve WordProcessing to XPS conversion |
CONVERSIONNET‑6211 | Enhancement | Improve Email to PDF conversion |
CONVERSIONNET‑6200 | Enhancement | Improve conversion to EBook |
CONVERSIONNET‑6048 | Enhancement | Server side request |
CONVERSIONNET‑6208 | Enhancement | Improve Presentation to XPS conversion |
CONVERSIONNET‑6197 | Enhancement | Improve Note to Web conversion |
CONVERSIONNET‑6207 | Enhancement | Improve Diagram to XPS conversion |
CONVERSIONNET‑6161 | Fix | The “Wrap Text” property was not taken into account when converting from Excel to PDF format |
CONVERSIONNET‑6160 | Fix | HTML to PDF margins not applied |
CONVERSIONNET‑6105 | Fix | The “Object reference not set to an instance of an object.” exception while converting DOCX to PDF |
CONVERSIONNET‑6072 | Fix | Specific XLSX to PDF conversion - output is not expected |
CONVERSIONNET‑6035 | Fix | Convert Spreadsheet to one image only |
CONVERSIONNET‑6202 | Fix | Conversion performance issue |
CONVERSIONNET‑6179 | Fix | Wrong 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
Introduced AutoFitRows property in SpreadsheetLoadOption class which enables auto fit of all rows when converting from a spreadsheet.
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.
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.
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.