Class NotebookImageSaveOptions
Nome do espaço: Aspose.Note.Saving Assembleia: Aspose.Note.dll (25.4.0)
Permite especificar opções adicionais ao render páginas de notebook para imagens.
public class NotebookImageSaveOptions : NotebookSaveOptions<imagesaveoptions>
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
Membros herdados
NotebookSaveOptions
Examples
Mostra como salvar um notebook em formato 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
});
Mostra como salvar o notebook como imagem com opções especificadas.
// 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);
Mostra como salvar um notebook flatulente como imagem.
// 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)
Inicia uma nova instância da classe Aspose.Note.Saving.NotebookImageSaveOptions.
public NotebookImageSaveOptions(SaveFormat format)
Parameters
format
SaveFormat
O formato em que o notebook é salvo.