Class OneSaveOptions
Class OneSaveOptions
Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (25.6.0)
Allows to specify additional options when saving document to OneNote format.
public sealed class OneSaveOptions : SaveOptions
{
private FileFormat fileFormat;
private ImageOrTextWatermark watermark;
private SaveFormat saveFormat;
public OneSaveOptions()
{
this.fileFormat = FileFormat.Docx;
this.watermark = null;
this.saveFormat = SaveFormat.Docx;
}
}
Inheritance
object ← SaveOptions ← OneSaveOptions
Inherited Members
SaveOptions.SaveFormat , SaveOptions.FontsSubsystem , SaveOptions.PageIndex , SaveOptions.PageCount , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Shows how to save document with encryption.
string dataDir = RunExamples.GetDataDir_NoteBook();
Document document = new Document();
document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one",
new OneSaveOptions { DocumentPassword = "pass" });
Shows how to save a document using OneSaveOptions.
string inputFile = "Sample1.one";
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string outputFile = "SaveDocToOneNoteFormatUsingOneSaveOptions_out.one";
Document document = new Document(dataDir + inputFile);
document.Save(dataDir + outputFile, new OneSaveOptions());
Constructors
OneSaveOptions()
public OneSaveOptions
{
}
Properties
DocumentPassword
Gets or sets a password to encrypt the document content.
public string DocumentPassword
{
get;
set;
}
Property Value
Examples
Shows how to save document with encryption.
string dataDir = RunExamples.GetDataDir_NoteBook();
Document document = new Document();
document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one",
new OneSaveOptions { DocumentPassword = "pass" });