Class NotebookSaveOptions

Class NotebookSaveOptions

Nome do espaço: Aspose.Note.Saving Assembleia: Aspose.Note.dll (25.4.0)

Uma classe de base abstrata que representa opções de poupança de notebook para um formato específicoe fornece opções de poupança comuns para todos os nodos de criança de documento.

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

Tipo de Parâmetros

TDocumentSaveOptions

As opções de armazenamento para todos os documentos da criança do notebook.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Membros herdados

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

Mostra como salvar um notebook em formato PDF com opções especificadas.

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

Avaliação de Opções ( )

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

Obter ou definir as opções de poupança para todos os documentos da criança do notebook.

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

Valor da propriedade

TDocumentOpções

Examples

Mostra como salvar um notebook em formato PDF com opções especificadas.

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

Obtenha o formato em que o notebook é salvo.

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

Valor da propriedade

SaveFormat

Methods

Obtenha Opções de Documento()

Obtenha as opções de poupança para todos os documentos da criança do notebook.

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

O Aspose.Note .Saving.SaveOptions.

 Português