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:

Contracts.Func<LoadOptions> getLoadOptions = () => new WordProcessingLoadOptions
    Password = "12345"
using (Converter converter = new Converter("sample_with_password.docx", getLoadOptions))
    PdfConvertOptions options = new PdfConvertOptions();
    converter.Convert("converted.pdf, options);

More resources

Examples and Demos

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!