Class NotebookSaveOptions
Το όνομα: Aspose.Note.Saving Συγκέντρωση: Aspose.Note.dll (25.4.0)
Μια αφηρημένη κατηγορία βάσης που αντιπροσωπεύει τις επιλογές αποθήκευσης σημειωματάριο για μια συγκεκριμένη μορφή.
public abstract class NotebookSaveOptions
Inheritance
Derived
Κληρονομημένα μέλη
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Δείχνει πώς να αποθηκεύσετε ένα μολυσμένο σημειωματάριο σε μορφή 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
});
Δείχνει πώς να αποθηκεύσετε το σημειωματάριο σε μορφή pdf με καθορισμένες επιλογές.
// 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);
Δείχνει πώς να αποθηκεύσετε ένα μολυσμένο σημειωματάριο ως εικόνα.
// 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
Αποκτά ή καθορίζει μια τιμή που υποδεικνύει αν τα παιδιά έγγραφαΠρέπει να σωθεί ρητά.
public bool DeferredSaving { get; set; }
Αξία ιδιοκτησίας
Remarks
Η προεπιλεγμένη τιμή είναι ψεύτικη, οπότε τα παιδικά έγγραφα θα αποθηκευτούν implicitly.Η τιμή “ειλικρινής” υποδεικνύει ότι ο χρήστης θα πρέπει να εξοικονομήσει το παιδικό κόμβο του κάθε φορητού υπολογιστή ρητώς.Αν το σημειωματάριο διατηρείται για ροή, η αξία είναι πάντα “δίκαιη” παρόλο που έχει καθοριστεί εκφραστικά από τους χρήστες για να “ψεύσει”.
Flatten
Αποκτά ή καθορίζει μια τιμή που υποδεικνύει αν η ιεραρχία των παιδιών σημειωματάριο είναι αποθηκευμένη.
public bool Flatten { get; set; }
Αξία ιδιοκτησίας
Examples
Δείχνει πώς να αποθηκεύσετε ένα μολυσμένο σημειωματάριο σε μορφή 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
});
Δείχνει πώς να αποθηκεύσετε ένα μολυσμένο σημειωματάριο ως εικόνα.
// 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
Αποκτά τη μορφή στην οποία αποθηκεύεται το σημειωματάριο.
public abstract SaveFormat SaveFormat { get; }
Αξία ιδιοκτησίας
Methods
GetDocumentSaveOptions()
Αποκτά τις επιλογές αποθήκευσης για όλα τα παιδικά έγγραφα του σημειωματάριου.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
Το Aspose.Note.Σώστε.SaveOptions