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 formatui zapewnia wspólne opcje oszczędnościowe dla wszystkich węzłów dokumentowych dzieci.

public abstract class NotebookSaveOptions<TDocumentSaveOptions>
       where TDocumentSaveOptions : SaveOptions
   {
   }

Rodzaj parametrów

TDocumentSaveOptions

Opcje przechowywania dla wszystkich dokumentów dziecięcych notatek.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Dziedziczeni członkowie

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

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

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   var notebookSaveOptions = new NotebookPdfSaveOptions();
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   dataDir += "ConvertToPDF_out.pdf";
   notebook.Save(dataDir, notebookSaveOptions);

Constructors

Opcje opcjonalne( )

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

Otrzymuje lub ustawia opcje oszczędzania dla wszystkich dokumentów dziecięcych notatki.

public TDocumentSaveOptions DocumentSaveOptions
   {
      get
      {
         return this.DocumentSaveOptions;
      }
      protected set
      {
         this.DocumentSaveOptions = value;
      }
   }

Wartość nieruchomości

TDocumentSaveOptions

Examples

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

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   var notebookSaveOptions = new NotebookPdfSaveOptions();
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   dataDir += "ConvertToPDF_out.pdf";
   notebook.Save(dataDir, notebookSaveOptions);

SaveFormat

Otrzymuje format, w którym jest zapisany notebook.

public override SaveFormat GetSaveFormat()
   {
      return this.SaveFormat;
   }

Wartość nieruchomości

SaveFormat

Methods

Zestaw opcji ()

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

public override SaveOptions GetDocumentSaveOptions()
   {
      return new SaveOptions
      {
         Encoding = System.Text.Encoding.UTF8,
         CreateHeadingsWithStyle = true,
         OmitFontSubstitutionWarning = true,
         SaveFormat = SaveFormat.Docx,
         SaveFormatVersion = PdfSaveFormatVersion.AutoDetect,
         SaveToFolder = @"C:\Temp\MyDocument",
         CreateFolderIfMissing = false,
         AllowPartialContentLoad = true,
         SaveEncryptionSettings = new EncryptionSettings(true, "", "", AesSyncedKeyDecryptionMode.Automatic),
         ErrorHandling = ErrorHandling.StopOnFirstError
      };
   }

Returns

SaveOptions

Opcja Aspose.Note.Saving.saveOptions.

 Polski