GroupDocs.Conversion For .NET 3.4.0 Release Notes

Major Features

There are 5 improvements and fixes in this regular monthly release. The most notable are:

  • Conversion of Html to image
  • When converting from word, option for hide/show tracked changes in the converted document
  • Fixed respecting dpi setting when converting image to image
  • Fixed respecting dpi setting when converting diagram to image

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET‑924Option when converting from Words for show/hide markup and tack changesNew Feature
CONVERSIONNET‑979Html to image conversionNew Feature
CONVERSIONNET‑911Image to Image conversion - target resolution is not changed when setting DpiFix
CONVERSIONNET‑912Diagram to Image conversion - target resolution is not changed when setting DpiFix
CONVERSIONNET‑1072Txt to Pdf is causing “Unknown format” exceptionFix

Public API and Backward Incompatible Changes

How to hide tracked changes when converting from words
const string sourceFileName = "sample.docx"; //TODO: Put the source filename here
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);

// Save options
SaveOptions saveOptions = new PdfSaveOptions
{
    OutputType = OutputType.String,
    HideWordTrackedChanges = true
};

var result = conversionHandler.Convert<string>(sourceFileName, saveOptions);
How to convert html to image
const string sourceFileName = "sample.html"; //TODO: Put the source filename here
// Setup Conversion configuration
var conversionConfig = new ConversionConfig
{
    CachePath = "cache",
    StoragePath = "."
};
var conversionHandler = new ConversionHandler(conversionConfig);

// Save options
SaveOptions saveOptions = new ImageSaveOptions
{
    OutputType = OutputType.String,
    Dpi = 300
};

var result = conversionHandler.Convert<IList<string>>(sourceFileName, saveOptions);