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
Derived
Miembros heredados
object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Examples
Mostra cómo guardar un notebook en formato PDF.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();
// Load a OneNote Notebook
var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");
// Save the Notebook
dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
notebook.Save(
dataDir,
new NotebookPdfSaveOptions
{
Flatten = true
});
Mostra cómo guardar un notebook en formato pdf con opciones especificadas.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();
// Load a OneNote Notebook
var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");
var notebookSaveOptions = new NotebookPdfSaveOptions();
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
dataDir = dataDir + "ConvertToPDF_out.pdf";
// Save the Notebook
notebook.Save(dataDir, notebookSaveOptions);
Mostra cómo guardar un notebook en forma de imagen.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();
// Load a OneNote 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 = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";
// Save the Notebook
notebook.Save(dataDir, notebookSaveOptions);
Constructors
NotebookSaveOptions()
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
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
Examples
Mostra cómo guardar un notebook en formato PDF.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();
// Load a OneNote Notebook
var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");
// Save the Notebook
dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
notebook.Save(
dataDir,
new NotebookPdfSaveOptions
{
Flatten = true
});
Mostra cómo guardar un notebook en forma de imagen.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();
// Load a OneNote 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 = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";
// Save the Notebook
notebook.Save(dataDir, notebookSaveOptions);
SaveFormat
Obtenga el formato en el que se salva el notebook.
public abstract SaveFormat SaveFormat { get; }
Valor de la propiedad
Methods
GetDocumentSaveOptions()
Obtenga las opciones de ahorro para todos los documentos infantiles de la computadora.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
El Aspose.Note.Saving .SaveOptions.