Class NotebookSaveOptions

Class NotebookSaveOptions

Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (24.12.0)

An abstract base class which represents notebook saving options for a particular format and provides common saving options for all document child nodes.

public abstract class NotebookSaveOptions<tdocumentsaveoptions> : NotebookSaveOptions where TDocumentSaveOptions : SaveOptions

Type Parameters

TDocumentSaveOptions

The save options for all notebook’s child documents.

Inheritance

objectNotebookSaveOptionsNotebookSaveOptions<tdocumentsaveoptions>

Inherited Members

NotebookSaveOptions.GetDocumentSaveOptions(), NotebookSaveOptions.SaveFormat, NotebookSaveOptions.Flatten, NotebookSaveOptions.DeferredSaving, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

Shows how to save notebook in pdf format with specified options.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_NoteBook();

                                                                       // Load a OneNote Notebook
                                                                       var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                                       var notebookSaveOptions = new NotebookPdfSaveOptions();

                                                                       var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                                       documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();

                                                                       dataDir = dataDir + "ConvertToPDF_out.pdf";

                                                                       // Save the Notebook
                                                                       notebook.Save(dataDir, notebookSaveOptions);

## Constructors

### <a id="Aspose_Note_Saving_NotebookSaveOptions_1__ctor"></a> NotebookSaveOptions\(\)

```csharp
protected NotebookSaveOptions()

Properties

DocumentSaveOptions

Gets or sets the save options for all notebook’s child documents.

public TDocumentSaveOptions DocumentSaveOptions { get; protected set; }

Property Value

TDocumentSaveOptions

Examples

Shows how to save notebook in pdf format with specified options.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_NoteBook();

                                                                       // Load a OneNote Notebook
                                                                       var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                                       var notebookSaveOptions = new NotebookPdfSaveOptions();

                                                                       var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                                       documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();

                                                                       dataDir = dataDir + "ConvertToPDF_out.pdf";

                                                                       // Save the Notebook
                                                                       notebook.Save(dataDir, notebookSaveOptions);

### <a id="Aspose_Note_Saving_NotebookSaveOptions_1_SaveFormat"></a> SaveFormat

Gets the format in which the notebook is saved.

```csharp
public override SaveFormat SaveFormat { get; }

Property Value

SaveFormat

Methods

GetDocumentSaveOptions()

Gets the save options for all notebook’s child documents.

public override SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

The Aspose.Note.Saving.SaveOptions. </tdocumentsaveoptions>