Load password-protected document

GroupDocs.Conversion supports conversion of documents that are protected with a password.

Here are the steps to follow to load and convert a password protected document:

The following code sample shows how to convert password protected document:

WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();

Converter converter = new Converter("sample_with_password.docx", loadOptions);
PdfConvertOptions options = new PdfConvertOptions();
converter.convert("converted.pdf, options);