Class NotebookSaveOptions

Class NotebookSaveOptions

Numele spaţiului: Aspose.Note.Saving Asamblare: Aspose.Note.dll (25.4.0)

O clasă de bază abstractă care reprezintă opțiunile de economisire a notebook-ului pentru un anumit formatși oferă opțiuni comune de economisire pentru toate nodurile copilului document.

public abstract class NotebookSaveOptions<TDocumentSaveOptions>
       where TDocumentSaveOptions : SaveOptions
   {
   }

Tipuri de parametri

TDocumentSaveOptions

Opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Membrii moștenitori

NotebookSaveOptions.GetDocumentSaveOptions() , NotebookSaveOptions.SaveFormat , NotebookSaveOptions.Flatten , NotebookSaveOptions.DeferredSaving , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

arată cum să salvați notebook-ul în format PDF cu opțiuni 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);

Constructors

Cuvânt cheie( )

protected void NotebookSaveOptions()
   {
   }

Properties

DocumentSaveOptions

Obține sau setă opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.

public TDocumentSaveOptions DocumentSaveOptions
   {
      get
      {
         return this.DocumentSaveOptions;
      }
      protected set
      {
         this.DocumentSaveOptions = value;
      }
   }

Valoarea proprietății

TDocumentOpțiuni

Examples

arată cum să salvați notebook-ul în format PDF cu opțiuni 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);

SaveFormat

Obține format în care este salvat notebook-ul.

public override SaveFormat GetSaveFormat()
   {
      return this.SaveFormat;
   }

Valoarea proprietății

SaveFormat

Methods

Cuvânt cheie( )

Obține opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.

public override SaveOptions GetDocumentSaveOptions()
   {
      return new SaveOptions
      {
         Encoding = System.Text.Encoding.UTF8,
         CreateHeadingsWithStyle = true,
         OmitFontSubstitutionWarning = true,
         SaveFormat = SaveFormat.Docx,
         SaveFormatVersion = PdfSaveFormatVersion.AutoDetect,
         SaveToFolder = @"C:\Temp\MyDocument",
         CreateFolderIfMissing = false,
         AllowPartialContentLoad = true,
         SaveEncryptionSettings = new EncryptionSettings(true, "", "", AesSyncedKeyDecryptionMode.Automatic),
         ErrorHandling = ErrorHandling.StopOnFirstError
      };
   }

Returns

SaveOptions

Opțiuni de salvare.SaveOptions.

 Română