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áta poskytuje spoločné možnosti úspory pre všetky dokumentové detské uzly.

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

Typ parametrov

TDocumentSaveOptions

Možnosti ušetrenia pre všetky detské dokumenty notebooku.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Z dedičných členov

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

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

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

NotebookSaveOptions( )

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

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

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

Hodnota nehnuteľnosti

TDokumentSaveOptions

Examples

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

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

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

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

Hodnota nehnuteľnosti

SaveFormat

Methods

Vyhľadať dokumenty()

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

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

Spoločnosť Aspose.Note.Saving .SaveOptions.

 Slovenčina