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.
public abstract class NotebookSaveOptions
{
}
Inheritance
Derived
Membrii moștenitori
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Afișează cum să salvați notebook-ul în format 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
});
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);
Afișează cum să salvați notebook-ul plăcut ca imagine.
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
Cuvânt cheie( )
protected NotebookSaveOptions()
{
}
Properties
DeferredSaving
Obține sau stabilește o valoare care indică dacă copiii sunt documentear trebui salvate în mod explicit.
public bool DeferredSaving
{
get;
set;
}
Valoarea proprietății
Remarks
Valoarea de bază este falsa, astfel încât documentele pentru copii vor fi salvate implicit.Valuarea “true” indică faptul că utilizatorul ar trebui să salveze în mod explicit nodul copil al fiecărui notebook.În cazul în care notebook-ul este salvat pentru streaming, valoarea este întotdeauna “dreaptă”, deși a fost setată explicitiv de utilizator la “false”.
Flatten
Obține sau stabilește o valoare care indică dacă ierarhia copiilor notebook-ului este salvată.
public bool Flatten
{
get;
set;
}
Valoarea proprietății
Examples
Afișează cum să salvați notebook-ul în format 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
});
Afișează cum să salvați notebook-ul plăcut ca imagine.
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
Obține format în care este salvat notebook-ul.
public abstract string SaveFormat
{
get;
}
Valoarea proprietății
Methods
Cuvânt cheie( )
Obține opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.
public abstract SaveOptions GetDocumentSaveOptions()
{
return new SaveOptions();
}
Returns
Opțiuni de salvare.SaveOptions.