Class NotebookSaveOptions

Class NotebookSaveOptions

Nazwa przestrzeń: Aspose.Note.Saving Zgromadzenie: Aspose.Note.dll (25.4.0)

Abstrakcyjna klasa podstawy, która reprezentuje opcje oszczędności notatek dla danego formatu.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Dziedziczeni członkowie

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

Examples

Pokaż, jak zaoszczędzić notatkę w formacie 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
                                                                  });

Pokaż, jak zapisać notebook w formacie PDF z określonymi opcjami.

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

Pokaż, jak zaoszczędzić płaski notebook jako obraz.

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

otrzymuje lub ustawia wartość wskazującą, czy dzieci dokumentująNależy go wyraźnie uratować.

public bool DeferredSaving { get; set; }

Wartość nieruchomości

bool

Remarks

Wartość domyślna jest “fałszywa”, więc dokumenty dziecięce zostaną zapisane w sposób implicitny.Wartość “prawdziwa” wskazuje, że użytkownik powinien wyraźnie zaoszczędzić przycisk dziecka każdego notebooka.Jeśli notebook jest zapisany do strumienia, wartość jest zawsze “prawdopodobna”, mimo że została wyjaśniona przez użytkownika do “falsa”.

Flatten

Otrzymuje lub ustawia wartość wskazującą, czy hierarchia notatek dla dzieci jest przechowywana.

public bool Flatten { get; set; }

Wartość nieruchomości

bool

Examples

Pokaż, jak zaoszczędzić notatkę w formacie 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
                                                                  });

Pokaż, jak zaoszczędzić płaski notebook jako obraz.

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

Otrzymuje format, w którym jest zapisany notebook.

public abstract SaveFormat SaveFormat { get; }

Wartość nieruchomości

SaveFormat

Methods

GetDocumentSaveOptions()

Otrzymuje opcje oszczędnościowe dla wszystkich dokumentów dziecięcych laptopa.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

Opcja Aspose.Note.Saving.saveOptions.

 Polski