Class NotebookImageSaveOptions
Class NotebookImageSaveOptions
名称: Aspose.Note.Saving 集合: Aspose.Note.dll (25.4.0)
允许在将笔记本页面转换为图像时指定额外的选项。
public class NotebookImageSaveOptions : NotebookSaveOptions<imagesaveoptions>
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");
// 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;
dataDir = dataDir + "ConvertToImageWithOptions_out.png";
// 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
NotebookImageSaveOptions(SaveFormat)
启动 Aspose.Note.Saving.NotebookImageSaveOptions 类的新例子。
public NotebookImageSaveOptions(SaveFormat format)
Parameters
format
SaveFormat
笔记本存储的格式。