Free Support Forum - aspose.com

Save OneNote files and set password protection?

Hi Aspose team,

I see that we can open password protected OneNote documents but can we save them with password protection?

If not, can this be put on feature request list? If yes, can you please share example?

Thx,
Oliver

@dr.doc,
You may give a try to the following sample code and share the feedback.

Document document = new Document();
document.Save("CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });

Here are the links for more details about password protection of OneNote files.

Thanks, all good now.
I was checking section “Save a OneNote Document” :slight_smile:

@dr.doc,
You are welcome. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.