Class NotebookSaveOptions
Le nom : Aspose.Note.Saving Assemblée: Aspose.Note.dll (25.4.0)
Une classe de base abstraite qui représente les options de sauvegarde du notebook pour un format particulieret fournit des options de sauvegarde communes pour tous les nœuds d’enfant de document.
public abstract class NotebookSaveOptions<TDocumentSaveOptions>
where TDocumentSaveOptions : SaveOptions
{
}
Tipo di parametri
TDocumentSaveOptions
Les options de sauvegarde pour tous les documents de l’enfant du notebook.
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
I membri ereditari
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
Affiche comment sauvegarder un ordinateur dans le format PDF avec des options spécifiées.
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
NotebookSaveOptions()
protected void NotebookSaveOptions()
{
}
Properties
DocumentSaveOptions
Obtenez ou définissez les options de sauvegarde pour tous les documents de l’enfant du notebook.
public TDocumentSaveOptions DocumentSaveOptions
{
get
{
return this.DocumentSaveOptions;
}
protected set
{
this.DocumentSaveOptions = value;
}
}
Valore di proprietà
TDocumentSaveOptions
Examples
Affiche comment sauvegarder un ordinateur dans le format PDF avec des options spécifiées.
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
Obtenez le format dans lequel le notebook est enregistré.
public override SaveFormat GetSaveFormat()
{
return this.SaveFormat;
}
Valore di proprietà
Methods
Résumé des documents()
Obtenez les options de sauvegarde pour tous les documents de l’enfant du notebook.
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
Le Aspose.Note.Saving .SaveOptions.