Class NotebookSaveOptions

Class NotebookSaveOptions

Nombre del espacio: Aspose.Note.Saving Asamblea: Aspose.Note.dll (25.4.0)

Una clase de base abstracta que representa las opciones de ahorro de notebook para un formato específicoy proporciona opciones de ahorro comunes para todos los nodos infantiles de documento.

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

Tipos de Parámetros

TDocumentSaveOptions

Las opciones de almacenamiento para todos los documentos infantiles del notebook.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Miembros heredados

NotebookSaveOptions.GetDocumentSaveOptions() ,y, NotebookSaveOptions.SaveFormat ,y, NotebookSaveOptions.Flatten ,y, NotebookSaveOptions.DeferredSaving ,y, object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()

Examples

Mostra cómo guardar un notebook en formato pdf con opciones 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

NoticiasSaveOptions()

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

Obtenga o establece las opciones de ahorro para todos los documentos infantiles del notebook.

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

Valor de la propiedad

TDocumentOpciones

Examples

Mostra cómo guardar un notebook en formato pdf con opciones 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

Obtenga el formato en el que se salva el notebook.

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

Valor de la propiedad

SaveFormat

Methods

Obtener las opciones()

Obtenga las opciones de ahorro para todos los documentos infantiles de la computadora.

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

El Aspose.Note.Saving .SaveOptions.

 Español