Class NotebookSaveOptions
Der Name: Aspose.Note.Saving Zusammensetzung: Aspose.Note.dll (25.4.0)
Eine abstrakte Basisklasse, die Notebook-Sparungsoptionen für ein bestimmtes Format darstellt.
public abstract class NotebookSaveOptions
Inheritance
Derived
Vererbte Mitglieder
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Zeigt, wie man ein flattenter Notebook in PDF-Format speichert.
// 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
});
Zeigt, wie man das Notebook in PDF-Format mit angegebenen Optionen speichert.
// 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);
Zeigt, wie man das flattente Notebook als Bild speichert.
// 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
Er erhält oder stellt einen Wert an, der darauf hindeutet, ob Kinder DokumenteEs sollte ausdrücklich gerettet werden.
public bool DeferredSaving { get; set; }
Eigentumswert
Remarks
Der Standardwert ist „falsch“, so dass Kinderdokumente implizit gespeichert werden.Value „true“ bedeutet, dass der Benutzer die Kinderknoten jedes Notebooks ausdrücklich speichern sollte.Wenn das Notebook zum Streaming speichert wird, ist der Wert immer „richtig“, obwohl er von den Benutzern aufdringlich „fehl“ festgelegt wurde.
Flatten
Er bekommt oder setzt einen Wert, der darauf hindeutet, ob die Notebook Kinder Hierarchie gespeichert ist.
public bool Flatten { get; set; }
Eigentumswert
Examples
Zeigt, wie man ein flattenter Notebook in PDF-Format speichert.
// 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
});
Zeigt, wie man das flattente Notebook als Bild speichert.
// 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
Erhält das Format, in dem das Notebook gespeichert wird.
public abstract SaveFormat SaveFormat { get; }
Eigentumswert
Methods
GetDocumentSaveOptions()
Erhalten Sie die Speicheroptionen für alle Kinderdokumente des Notebooks.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
Die Aspose.Note.Saving und SaveOptions.