Class NotebookSaveOptions

Class NotebookSaveOptions

Il nome: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)

Una classe di base astratta che rappresenta opzioni di risparmio del notebook per un formato specifico.

public abstract class NotebookSaveOptions
   {
   }

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

I membri ereditari

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

Examples

Mostra come salvare un notebook flattato in 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 come salvare il notebook in formato pdf con le opzioni specificate.

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 come salvare il notebook flattato come immagine.

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

NotebookSaveOptions( )

protected NotebookSaveOptions()
   {
   }

Properties

DeferredSaving

Riceve o impone un valore che indica se i documenti dei bambiniBisogna salvare esplicitamente.

public bool DeferredSaving
   {
      get;
      set;
   }

Valore di proprietà

bool

Remarks

Il valore predefinito è ‘falso’, quindi i documenti infantili saranno salvati implicitamente.Il valore ’true’ indica che l’utente dovrebbe salvare il nodo infantile di ciascun notebook in modo esplicito.Se il notebook viene salvato per il flusso, il valore è sempre ‘fake’ nonostante sia stato specificamente impostato dall’utilizzatore a ‘fail’.

Flatten

Riceve o impone un valore che indica se la gerarchia dei bambini del notebook è salata flattata.

public bool Flatten
   {
      get;
      set;
   }

Valore di proprietà

bool

Examples

Mostra come salvare un notebook flattato in 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 come salvare il notebook flattato come immagine.

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

Riceve il formato in cui viene salvato il notebook.

public abstract string SaveFormat
   {
      get;
   }

Valore di proprietà

SaveFormat

Methods

Scopri le opzioni dei documenti()

Ottieni le opzioni di risparmio per tutti i documenti per bambini del notebook.

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

Returns

SaveOptions

Il Aspose.Note.Saving.saveOptions.

 Italiano