Measure Document Conversion Time using GroupDocs.Conversion for .NET 18.11

Share on FacebookTweet about this on TwitterShare on LinkedIn

GroupDocs.Conversion

GroupDocs.Conversion for .NET 18.11 comes with a lot of new features and some improvements. Conversion from EPS, TSV and PCL formats is introduced. Furthermore, API provides option for page rotation when converting to PDF. Please refer to GroupDocs.Conversion for .NET 18.10 release notes for further reference.

Improvements

  • Move HideWordTrackedChanges option to WordsLoadOptions class
  • HidePdfAnnotations option to PdfLoadOptions class
  • HideComments option to CellsLoadOptions, Slides CellsLoadOptions and WordsLoadOptions class

Features

Setting default font and Font Substitution Options

When Converting One Document

const string source = "source.one";
var loadOptions = new OneLoadOptions
{
    DefaultFont = "Helvetica",
};
loadOptions.FontSubstitutes.Add(new KeyValuePair("Arial", "Helvetica"));
loadOptions.FontSubstitutes.Add(new KeyValuePair("Harriet", "Transcript"));

Set default font when converting from Diagram

const string source = "source.vsd";
var loadOptions = new DiagramLoadOptions
{
    DefaultFont = "Helvetica",
};

Measure Conversion Time

Measure conversion time and return it as a property of ConvertedDocument class

var convertedDocument = conversionHandler.Convert(source, saveOptions);
Console.WriteLine("Elapsed time: {0}ms", convertedDocument.Elapsed);

Rotation Feature

When Converting to PDF

Implement rotation feature when converting to PDF

var saveOptions = new PdfSaveOptions {
    Rotate = PdfSaveOptions.Rotation.On90
};

When Converting to Image

var saveOptions = new ImageSaveOptions {
    RotateAngle = 45
};

Flatten all Form Fields

Option for flatten all form fields when converting PDF

var loadOptions = new PdfLoadOptions
{
    FlattenAllFields = true
};

Include Hidden Slides in Converted Document

Include hidden Slides in converted document when converting from Slides

var loadOptions = new SlidesLoadOptions
{
    ShowHiddenSlides = true
};

API Resources

Here are a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Conversion:

Feedback

We always welcome you to share your feedback to improve this product. We will be happy to know your thoughts. Just create a forum thread and our dedicated support team will be there to respond.

The post Measure Document Conversion Time using GroupDocs.Conversion for .NET 18.11 appeared first on Document Manipulation APIs Blog – groupdocs.com.