GroupDocs.Conversion For .NET 17.1.0 Release Notes

Major Features

There are 11 new features, improvements and fixes in this regular monthly release. The most notable are:

  • Conversions to XPS format
  • Conversions to SVG format
  • Conversions from OTS format
  • Reduced memory usage
  • Fixed 4 bugs

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET‑1683Metered licensingNew Feature
CONVERSIONNET‑1585Implement conversion from OTSNew Feature
CONVERSIONNET‑1598Implement conversion to grayscale imageNew Feature
CONVERSIONNET‑1619Implement conversion to XPSNew Feature
CONVERSIONNET‑1624Implement conversion to SVGNew Feature
CONVERSIONNET‑1645Improving memory handling on saveImprovement
CONVERSIONNET‑1646Improving output file name if converting from/to pageImprovement
CONVERSIONNET‑1648Improve memory handling in documentsImprovement
CONVERSIONNET‑1580Multipage Tiff is not converted properly to PdfFix
CONVERSIONNET‑1615Page mode conversions do not workFix
CONVERSIONNET‑1643HideWordTrackedChanges not respected when converting from wordFix
CONVERSIONNET‑1644Dpi resolution not respected when converting Cells to ImageFix

Public API and Backward Incompatible Changes

Metered licensing

var storagePath = @"c:\Worx\aspose\sources\GroupDocs.Conversion.Test\SampleFiles";
// Setup Conversion configuration
var conversionConfig = new ConversionConfig {StoragePath = storagePath};

// Create new instance of GroupDocs.Conversion.Metered classs
GroupDocs.Conversion.Metered metered = new GroupDocs.Conversion.Metered();

// Set public and private key to metered instance
metered.SetMeteredKey("***", "***");

// Get metered value before usage of the conversion
decimal amountBefore = GroupDocs.Conversion.Metered.GetConsumptionQuantity();

Console.WriteLine("Amount consumed  before: " + amountBefore);

//instantiating the conversion handler
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions
{
    ConvertFileType = PdfSaveOptions.PdfFileType.Pdf
};
var convertedDocumentStream = conversionHandler.Convert<IList<Stream>>("sample.docx", options);

// Get metered value after usage of the conversion
decimal amountAfter = GroupDocs.Conversion.Metered.GetConsumptionQuantity();

Console.WriteLine("Amount consumed  after: " + amountAfter);

How to convert to grayscale image

var storagePath = @"c:\Worx\aspose\sources\GroupDocs.Conversion.Test\SampleFiles";
// Setup Conversion configuration
var conversionConfig = new ConversionConfig {StoragePath = storagePath};
//instantiating the conversion handler
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new ImageSaveOptions
{
    ConvertFileType = ImageSaveOptions.ImageFileType.Jpg,
    Grayscale = true
};
var convertedDocumentStream = conversionHandler.Convert<IList<Stream>>("sample.docx", options);

How to convert to SVG

var storagePath = @"c:\Worx\aspose\sources\GroupDocs.Conversion.Test\SampleFiles";
// Setup Conversion configuration
var conversionConfig = new ConversionConfig {StoragePath = storagePath};
//instantiating the conversion handler
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new ImageSaveOptions
{
    ConvertFileType = ImageSaveOptions.ImageFileType.Svg
};
var convertedDocumentStream = conversionHandler.Convert<IList<Stream>>("sample.docx", options);

How to convert to XPS

 var storagePath = @"c:\Worx\aspose\sources\GroupDocs.Conversion.Test\SampleFiles";
// Setup Conversion configuration
var conversionConfig = new ConversionConfig {StoragePath = storagePath};
//instantiating the conversion handler
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions
{
    ConvertFileType = PdfSaveOptions.PdfFileType.Xps
};
var convertedDocumentStream = conversionHandler.Convert<IList<Stream>>("sample.docx", options);