Class NotebookSaveOptions

Class NotebookSaveOptions

Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (25.4.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

object NotebookSaveOptions NotebookSaveOptions<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.

// 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

NotebookSaveOptions()

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.

// 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);

SaveFormat

Gets the format in which the notebook is saved.

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>

 English