Class NotebookPdfSaveOptions
Class NotebookPdfSaveOptions
名称: Aspose.Note.Saving 集合: Aspose.Note.dll (25.4.0)
允许在将笔记本页面转换为PDF时指定额外的选项。
public class NotebookPdfSaveOptions : NotebookSaveOptions<pdfsaveoptions>
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
继承人
NotebookSaveOptions
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");
var notebookSaveOptions = new NotebookPdfSaveOptions();
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
dataDir = dataDir + "ConvertToPDF_out.pdf";
// Save the Notebook
notebook.Save(dataDir, notebookSaveOptions);
Constructors
NotebookPdfSaveOptions()
public NotebookPdfSaveOptions()