Class NotebookSaveOptions

Class NotebookSaveOptions

Pôvodný názov: Aspose.Note.Saving Zhromaždenie: Aspose.Note.dll (25.4.0)

Abstraktná základná trieda, ktorá predstavuje možnosti úspory notebooku pre konkrétny formát.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Z dedičných členov

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

Examples

Ukážte, ako uložiť platený notebook vo formáte 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
                                                                  });

Ukáže, ako uložiť notebook vo formáte PDF so špecifikovanými možnosťami.

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

Ukáže, ako zachrániť pletený notebook ako obrázok.

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

Získa alebo nastaví hodnotu, ktorá ukazuje, či sú deti dokumentovanéMusí byť explicitne zachránený.

public bool DeferredSaving { get; set; }

Hodnota nehnuteľnosti

bool

Remarks

Predvolená hodnota je “falšovaná”, takže detské dokumenty budú uložené implicitne.Value “true” znamená, že používateľ by mal ušetriť detský uzol každého notebooku výslovne.Ak je notebook uložený na streamovanie, hodnoty sú vždy “pravdivé” aj keď bolo explicitne nastavené užívateľom na “falošné”.

Flatten

Získa alebo nastaví hodnotu, ktorá ukazuje, či je detská hierarchia v notebooku zachránená.

public bool Flatten { get; set; }

Hodnota nehnuteľnosti

bool

Examples

Ukážte, ako uložiť platený notebook vo formáte 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
                                                                  });

Ukáže, ako zachrániť pletený notebook ako obrázok.

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

Dostane formát, v ktorom je notebook uložený.

public abstract SaveFormat SaveFormat { get; }

Hodnota nehnuteľnosti

SaveFormat

Methods

GetDocumentSaveOptions()

Získajte možnosti ušetrenia pre všetky detské dokumenty notebooku.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

Zariadenie WL31_ .Saving.SaveOptions.

 Slovenčina