GroupDocs.Conversion for .NET 17.9.0 Release Notes

Major Features

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

  • Major improvements in the public API. Note: no braking changes. The redundant methods are marked as obsolete and will be removed after 17.12.0 release
  • Improvement in diagram to HTML conversion
  • Improved conversion from SVG
  • Email to HTML conversion improvements
  • 4 bugs fixed

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET-1841Convert Diagram to Html improvementsImprovement
CONVERSIONNET-2044Conversion from SVG improvementImprovement
CONVERSIONNET-2056Email to Html conversion improvementImprovement
CONVERSIONNET-2072Improved public APIImprovement
CONVERSIONNET-1754PPTX to HTML Conversion - While converting pptx to html found improper text formatting of Header or missing textBug
CONVERSIONNET-2042ImageSaveOptions.TiffOptions.Compression does not seem to workBug
CONVERSIONNET-1755PPTX to HTML Conversion - Image without background converted with white background also white dot is added near Header TextBug
CONVERSIONNET-809Images are missing when PDF is saved to EPUBBug

Public API and Backward Incompatible Changes

GroupDocs.Conversion.Handler.ConversionHandler.Convert

Convert a document to file

const string sourceFileName = "sample.docx"; //TODO: Put the source filename here with more than 5 pages
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions();
var convertedDocument = conversionHandler.Convert(sourceFileName, options);
convertedDocument.Save("result.pdf");

Convert a document to stream

const string sourceFileName = "sample.docx"; //TODO: Put the source filename here with more than 5 pages
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var options = new PdfSaveOptions();
var convertedDocument = conversionHandler.Convert(sourceFileName, options);
using(MemoryStream targetStream = new MemoryStream) {
    convertedDocument.Save(targetStream);
} 

GroupDocs.Conversion.Handler.ConversionHandler.GetDocumentPagesCount

const string sourceFileName = "sample.docx"; //TODO: Put the source filename here with more than 5 pages
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
var documentInfo = conversionHandler.GetDocumentInfo(sourceFileName);
var result = documentInfo.PageCount 

GroupDocs.Conversion.Handler.ConversionHandler.GetDocumentType

// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);
//sourceStream should contain the document content
var documentInfo = conversionHandler.GetDocumentInfo(sourceStream);
var result = documentInfo.FileType