Class NotebookSaveOptions

Class NotebookSaveOptions

Nome do espaço: Aspose.Note.Saving Assembleia: Aspose.Note.dll (25.4.0)

Uma classe de base abstrata que representa opções de poupança de notebook para um formato específico.

public abstract class NotebookSaveOptions
   {
   }

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Membros herdados

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Mostra como salvar um notebook em formato PDF.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   string dataDirModified = dataDir + "ConvertToPDFAsFlattened_out.pdf";
   notebook.Save(
       dataDirModified,
       new NotebookPdfSaveOptions
       {
           Flatten = true
       });

Mostra como salvar um notebook em formato PDF com opções especificadas.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   var notebookSaveOptions = new NotebookPdfSaveOptions();
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   dataDir += "ConvertToPDF_out.pdf";
   notebook.Save(dataDir, notebookSaveOptions);

Mostra como salvar um notebook flatulente como imagem.

string dataDir = RunExamples.GetDataDir_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 += "ConvertToImageAsFlattenedNotebook_out.png";
   notebook.Save(dataDir, notebookSaveOptions);

Constructors

Avaliação de Opções ( )

protected NotebookSaveOptions()
   {
   }

Properties

DeferredSaving

Recebe ou coloca um valor indicando se as crianças documentamDeve ser salvo explicitamente.

public bool DeferredSaving
   {
      get;
      set;
   }

Valor da propriedade

bool

Remarks

O valor padrão é ‘falso’, então os documentos da criança serão salvos implicitamente.O valor ‘verdadeiro’ indica que o usuário deve salvar o nodo de criança de cada notebook de forma explícita.Se o notebook é salvo para a transmissão, o valor é sempre ’trata’ apesar de ser explicitemente definido pelo utilizador para ‘falso’.

Flatten

Recebe ou coloca um valor indicando se a hierarquia das crianças do notebook é salvo.

public bool Flatten
   {
      get;
      set;
   }

Valor da propriedade

bool

Examples

Mostra como salvar um notebook em formato PDF.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   dataDir += "ConvertToPDFAsFlattened_out.pdf";
   notebook.Save(
       dataDir,
       new NotebookPdfSaveOptions
       {
           Flatten = true
       });

Mostra como salvar um notebook flatulente como imagem.

string dataDir = RunExamples.GetDataDir_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 += "ConvertToImageAsFlattenedNotebook_out.png";
   notebook.Save(dataDir, notebookSaveOptions);

SaveFormat

Obtenha o formato em que o notebook é salvo.

public abstract string SaveFormat
   {
      get;
   }

Valor da propriedade

SaveFormat

Methods

Obtenha Opções de Documento()

Obtenha as opções de poupança para todos os documentos da criança do notebook.

public abstract SaveOptions GetDocumentSaveOptions()
    {
        return new SaveOptions();
    }

Returns

SaveOptions

O Aspose.Note .Saving.SaveOptions.

 Português