NotebookSaveOptions1.DocumentSaveOptions
NotebookSaveOptions<TDocumentSaveOptions>.DocumentSaveOptions property
يحصل أو يعيّن خيارات الحفظ لجميع المستندات الفرعية للدفتر.
public TDocumentSaveOptions DocumentSaveOptions { get; }
أمثلة
يوضح كيفية حفظ الدفتر بتنسيق pdf مع الخيارات المحددة.
// المسار إلى دليل المستندات.
string dataDir = RunExamples.GetDataDir_NoteBook();
// تحميل دفتر OneNote
var notebook = new Notebook(dataDir + "Notebook.onetoc2");
var notebookSaveOptions = new NotebookPdfSaveOptions();
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
dataDir = dataDir + "ConvertToPDF_out.pdf";
// احفظ الدفتر
notebook.Save(dataDir, notebookSaveOptions);
انظر أيضًا
- class NotebookSaveOptions<TDocumentSaveOptions>
- namespace Aspose.Note.Saving
- assembly Aspose.Note