Class NotebookSaveOptions
Il nome: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)
Una classe di base astratta che rappresenta opzioni di risparmio del notebook per un formato specifico.
public abstract class NotebookSaveOptions
Inheritance
Derived
I membri ereditari
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Mostra come salvare un notebook flattato in 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 come salvare il notebook in formato pdf con le opzioni specificate.
// 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 come salvare il notebook flattato come immagine.
// 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
Riceve o impone un valore che indica se i documenti dei bambiniBisogna salvare esplicitamente.
public bool DeferredSaving { get; set; }
Valore di proprietà
Remarks
Il valore predefinito è ‘falso’, quindi i documenti infantili saranno salvati implicitamente.Il valore ’true’ indica che l’utente dovrebbe salvare il nodo infantile di ciascun notebook in modo esplicito.Se il notebook viene salvato per il flusso, il valore è sempre ‘fake’ nonostante sia stato specificamente impostato dall’utilizzatore a ‘fail’.
Flatten
Riceve o impone un valore che indica se la gerarchia dei bambini del notebook è salata flattata.
public bool Flatten { get; set; }
Valore di proprietà
Examples
Mostra come salvare un notebook flattato in 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 come salvare il notebook flattato come immagine.
// 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
Riceve il formato in cui viene salvato il notebook.
public abstract SaveFormat SaveFormat { get; }
Valore di proprietà
Methods
GetDocumentSaveOptions()
Ottieni le opzioni di risparmio per tutti i documenti per bambini del notebook.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
Il Aspose.Note.Saving.saveOptions.