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ífico.

public abstract class NotebookSaveOptions
   {
   }

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Miembros heredados

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.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   string dataDirModified = dataDir + "ConvertToPDFAsFlattened_out.pdf";
   notebook.Save(
       dataDirModified,
       new NotebookPdfSaveOptions
       {
           Flatten = true
       });

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);

Mostra cómo guardar un notebook en forma de imagen.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");
   var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.Resolution = 400;
   notebookSaveOptions.Flatten = true;
   dataDir += "ConvertToImageAsFlattenedNotebook_out.png";
   notebook.Save(dataDir, notebookSaveOptions);

Constructors

NoticiasSaveOptions()

protected NotebookSaveOptions()
   {
   }

Properties

DeferredSaving

Obtenga o establece un valor que indica si los niños documentanHay que salvarlo explícitamente.

public bool DeferredSaving
   {
      get;
      set;
   }

Valor de la propiedad

bool

Remarks

El valor predeterminado es ‘falso’, por lo que los documentos infantiles se salvarán implicitamente.El valor ‘verdadera’ indica que el usuario debe salvar el nodo infantil de cada notebook de forma explícita.Si el notebook se ahorrará para fluir, el valor es siempre ’true’ a pesar de que fue expresamente establecido por el Usuario para ‘fake’.

Flatten

Obtenga o establece un valor que indica si la jerarquía de los niños de la carpeta se salva.

public bool Flatten
   {
      get;
      set;
   }

Valor de la propiedad

bool

Examples

Mostra cómo guardar un notebook en formato PDF.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   dataDir += "ConvertToPDFAsFlattened_out.pdf";
   notebook.Save(
       dataDir,
       new NotebookPdfSaveOptions
       {
           Flatten = true
       });

Mostra cómo guardar un notebook en forma de imagen.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");
   var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.Resolution = 400;
   notebookSaveOptions.Flatten = true;
   dataDir += "ConvertToImageAsFlattenedNotebook_out.png";
   notebook.Save(dataDir, notebookSaveOptions);

SaveFormat

Obtenga el formato en el que se salva el notebook.

public abstract string SaveFormat
   {
      get;
   }

Valor de la propiedad

SaveFormat

Methods

Obtener las opciones()

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

public abstract SaveOptions GetDocumentSaveOptions()
    {
        return new SaveOptions();
    }

Returns

SaveOptions

El Aspose.Note.Saving .SaveOptions.

 Español