Get default load options for a source format

GroupDocs.Conversion allows you to get default load options for the source document format. This will allow you to get default load options runtime, knowing the source format.

Here are the steps to follow:

Following code snippet shows how to get default load options for a wordprocessing document:

var possibleConversions = Converter.GetPossibleConversions("docx");
var loadOptions = (WordProcessingLoadOptions) possibleConversions.LoadOptions;
loadOptions.Password = "12345";

using (Converter converter = new Converter("password_protected.docx", () => loadOptions))
{
    var convertOptions = new PdfConvertOptions();
    converter.Convert(outputFile, convertOptions);
}