Class NotebookImageSaveOptions
Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (25.6.0)
Allows to specify additional options when rendering notebook pages to images.
public class NotebookImageSaveOptions : NotebookSaveOptions<ImageSaveOptions>
{
}
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
Inherited Members
NotebookSaveOptions
Examples
Shows how to save flattened notebook in pdf format.
var dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
dataDir += "ConvertToPDFAsFlattened_out.pdf";
notebook.Save(
dataDir,
new NotebookPdfSaveOptions
{
Flatten = true
}
);
Shows how to save notebook as image with specified options.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
var notebookSaveOptions = new NotebookImageSaveOptions { SaveFormat = SaveFormat.Png };
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.Resolution = 400;
dataDir += "ConvertToImageWithOptions_out.png";
notebook.Save(dataDir, notebookSaveOptions);
Shows how to save flattened notebook as image.
var dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");
var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png)
{
DocumentSaveOptions = new DocumentSaveOptions()
{
Resolution = 400
},
Flatten = true
};
dataDir += "ConvertToImageAsFlattenedNotebook_out.png";
notebook.Save(dataDir, notebookSaveOptions);
Constructors
NotebookImageSaveOptions(SaveFormat)
Initializes a new instance of the Aspose.Note.Saving.NotebookImageSaveOptions class.
public NotebookImageSaveOptions(SaveFormat format)
{
this.Format = format;
}
Parameters
format
SaveFormat
The format in which the notebook is saved.