Class NotebookSaveOptions
Numele spaţiului: Aspose.Note.Saving Asamblare: Aspose.Note.dll (25.4.0)
O clasă de bază abstractă care reprezintă opțiunile de economisire a notebook-ului pentru un anumit format.
public abstract class NotebookSaveOptions
Inheritance
Derived
Membrii moștenitori
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Afișează cum să salvați notebook-ul în format 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
});
arată cum să salvați notebook-ul în format PDF cu opțiuni 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);
Afișează cum să salvați notebook-ul plăcut ca imagine.
// 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
Obține sau stabilește o valoare care indică dacă copiii sunt documentear trebui salvate în mod explicit.
public bool DeferredSaving { get; set; }
Valoarea proprietății
Remarks
Valoarea de bază este falsa, astfel încât documentele pentru copii vor fi salvate implicit.Valuarea “true” indică faptul că utilizatorul ar trebui să salveze în mod explicit nodul copil al fiecărui notebook.În cazul în care notebook-ul este salvat pentru streaming, valoarea este întotdeauna “dreaptă”, deși a fost setată explicitiv de utilizator la “false”.
Flatten
Obține sau stabilește o valoare care indică dacă ierarhia copiilor notebook-ului este salvată.
public bool Flatten { get; set; }
Valoarea proprietății
Examples
Afișează cum să salvați notebook-ul în format 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
});
Afișează cum să salvați notebook-ul plăcut ca imagine.
// 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
Obține format în care este salvat notebook-ul.
public abstract SaveFormat SaveFormat { get; }
Valoarea proprietății
Methods
GetDocumentSaveOptions()
Obține opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
WL31_.Saving .SaveOptions.