Class NotebookSaveOptions

Class NotebookSaveOptions

名称: Aspose.Note.Saving 集合: Aspose.Note.dll (25.4.0)

一个抽象的基础类,代表特定格式的笔记本存储选项并为所有文档儿童节点提供常见的储蓄选项。

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

类型参数

TDocumentSaveOptions

保存所有笔记本的儿童文件的选项。

Inheritance

object NotebookSaveOptions NotebookSaveOptions

继承人

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

显示如何在 PDF 格式中保存笔记本,并提供指定的选项。

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

笔记本SaveOptions()

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

获取或设置所有笔记本电脑的儿童文件的存储选项。

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

财产价值

TDocumentSave选项

Examples

显示如何在 PDF 格式中保存笔记本,并提供指定的选项。

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

获取笔记本存储的格式。

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

财产价值

SaveFormat

Methods

GetDocumentSaveOptions( )

获取所有笔记本电脑的儿童文件的存储选项。

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

此分類上一篇: Aspose.Note .Saving.SaveOptions

 中文