Class NotebookSaveOptions
Il nome: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)
Una classe di base astratta che rappresenta le opzioni di risparmio del notebook per un formato specificoe fornisce opzioni comuni di risparmio per tutti i nodi dei documenti per bambini.
public abstract class NotebookSaveOptions<TDocumentSaveOptions>
where TDocumentSaveOptions : SaveOptions
{
}
Tipo di parametri
TDocumentSaveOptions
Le opzioni di risparmio per tutti i documenti per bambini del 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
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);
Constructors
NotebookSaveOptions( )
protected void NotebookSaveOptions()
{
}
Properties
DocumentSaveOptions
Riceve o impone le opzioni di salvataggio per tutti i documenti per bambini del notebook.
public TDocumentSaveOptions DocumentSaveOptions
{
get
{
return this.DocumentSaveOptions;
}
protected set
{
this.DocumentSaveOptions = value;
}
}
Valore di proprietà
TDocumentOpzioni
Examples
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);
SaveFormat
Riceve il formato in cui viene salvato il notebook.
public override SaveFormat GetSaveFormat()
{
return this.SaveFormat;
}
Valore di proprietà
Methods
Scopri le opzioni dei documenti()
Ottieni le opzioni di risparmio per tutti i documenti per bambini del 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
Il Aspose.Note.Saving.saveOptions.