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ífico.
public abstract class NotebookSaveOptions
Inheritance
Derived
Membros herdados
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.
// 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 como salvar um notebook em formato PDF com opções 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 como salvar um notebook flatulente como imagem.
// 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
Recebe ou coloca um valor indicando se as crianças documentamDeve ser salvo explicitamente.
public bool DeferredSaving { get; set; }
Valor da propriedade
Remarks
O valor padrão é ‘falso’, então os documentos da criança serão salvos implicitamente.O valor ‘verdadeiro’ indica que o usuário deve salvar o nodo de criança de cada notebook de forma explícita.Se o notebook é salvo para a transmissão, o valor é sempre ’trata’ apesar de ser explicitemente definido pelo utilizador para ‘falso’.
Flatten
Recebe ou coloca um valor indicando se a hierarquia das crianças do notebook é salvo.
public bool Flatten { get; set; }
Valor da propriedade
Examples
Mostra como salvar um notebook em 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 como salvar um notebook flatulente como imagem.
// 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
Obtenha o formato em que o notebook é salvo.
public abstract SaveFormat SaveFormat { get; }
Valor da propriedade
Methods
GetDocumentSaveOptions()
Obtenha as opções de poupança para todos os documentos da criança do notebook.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
O Aspose.Note .Saving.SaveOptions.