Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

This section lists public API changes that were introduced in GroupDocs.Conversion for .NET 19.1. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Conversion which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.

  1. None

Removed obsolete namespace GroupDocs.Conversion.Converter.Option

  1. All LoadOptions and SaveOptions classes removed from namespace GroupDocs.Conversion.Converter.Option.
    LoadOptions classes are now in GroupDocs.Conversion.Options.Load namespace and SaveOptions classes are now in GroupDocs.Conversion.Options.Save namespace.

Save converted document returns saved file name and size

Code Block
/// <summary>
/// Class for handling converted document
/// </summary>
public sealed class ConvertedDocument
{
    ...
    /// <summary>
    /// Save converted document to custom named file
    /// </summary>
    /// <param name="fileName"></param>
    public SaveInfo Save(string fileName)
 
    /// <summary>
    /// Save specific page from converted document to custom named file
    /// </summary>
    /// <param name="fileName"></param>
    /// <param name="page"></param>
    public SaveInfo Save(string fileName, int page)
    ...
}

Usage

Code Block
...
var config = new ConversionConfig();
var conversionHandler = new ConversionHandler(config);
const string source = "source.docx";
var saveOptions = new PdfSaveOptions();
var convertedDocument = conversionHandler.Convert(source, saveOptions);
var saveInfo = convertedDocument.Save("converted", 1);
Console.WriteLine("Page 1 file size: {0}", saveInfo.Size);
Console.WriteLine("Page 1 saved path: {0}", saveInfo.FileName);
...