Class NotebookSaveOptions

Class NotebookSaveOptions

Nom dels espais: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)

Una classe de base abstracta que representa les opcions d’estalvi de notebook per a un format específic.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Membres heretats

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Mostra com guardar un notebook flatenat en format PDF.

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

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

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

Mostra com salvar el notebook en format pdf amb les opcions especificades.

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

Mostra com guardar un notebook flatulent com a imatge.

// 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 NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

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

Constructors

NotebookSaveOptions()

protected NotebookSaveOptions()

Properties

DeferredSaving

Obtenir o establir un valor que indiqui si els nens documentsS’ha de rescatar explícitament.

public bool DeferredSaving { get; set; }

Valor de la propietat

bool

Remarks

El valor estàndard és ‘false’, de manera que els documents infantils s’emmagatzemen implicitament.El valor ’true’ indica que l’usuari ha de guardar el nucli infantil de cada notebook explícitment.Si el màster és guardat per a la transmissió, el valor és sempre ‘veritable’ tot i que ha estat expressament establert pel usuari per ‘fals’.

Flatten

Obté o estableix un valor que indica si la jerarquia dels infants de la tauleta s’ha salvat.

public bool Flatten { get; set; }

Valor de la propietat

bool

Examples

Mostra com guardar un notebook flatenat en format PDF.

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

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

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

Mostra com guardar un notebook flatulent com a imatge.

// 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 NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

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

SaveFormat

Obté el format en el qual s’emmagatzema el notebook.

public abstract SaveFormat SaveFormat { get; }

Valor de la propietat

SaveFormat

Methods

GetDocumentSaveOptions()

Obté les opcions d’estalvi per a tots els documents infantils del notebook.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

El Aspose.Note .Saving.SaveOptions.

 Català