Convert document

Convert a file

GroupDocs.Conversion provides a quick and easy way to convert files from some source format to various range of target formats. Conversion process from the user’s point of view is pretty simple - source document is loaded to a converter and after conversion is completed, result is saved to a desired file path at local disk or other storage.  By default when performing internal calculations GroupDocs.Conversion for .NET will use some predefined settings that are most suitable for loading and saving specified file format. However, it is always possible to adjust these settings through LoadOptions and ConvertOptions classes. In general conversion to any format could be triggered by following 3 steps:

  • Create new instance of Converter class and pass source document path as a constructor parameter
  • Instantiate the needed ConvertOptions object according to your requirements.
  • Call Convert method of Converterclass instance and pass name of the converted document and the instance of convert options from the previous step These documentation articles are explaining in details how to convert a file to the most popular formats: