Class NotebookSaveOptions
Nom dels espais: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)
Una classe de base abstracta que representa les opcions d’estalvi de notebook per a un format específic.
public abstract class NotebookSaveOptions
{
}
Inheritance
Derived
Membres heretats
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Mostra com guardar un notebook flatenat en 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
});
Mostra com salvar el notebook en format pdf amb les opcions especificades.
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 com guardar un notebook flatulent com a imatge.
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
NotíciesSaveOptions()
protected NotebookSaveOptions()
{
}
Properties
DeferredSaving
Obtenir o establir un valor que indiqui si els nens documentsS’ha de rescatar explícitament.
public bool DeferredSaving
{
get;
set;
}
Valor de la propietat
Remarks
El valor estàndard és ‘false’, de manera que els documents infantils s’emmagatzemen implicitament.El valor ’true’ indica que l’usuari ha de guardar el nucli infantil de cada notebook explícitment.Si el màster és guardat per a la transmissió, el valor és sempre ‘veritable’ tot i que ha estat expressament establert pel usuari per ‘fals’.
Flatten
Obté o estableix un valor que indica si la jerarquia dels nens de la tauleta s’ha salvat.
public bool Flatten
{
get;
set;
}
Valor de la propietat
Examples
Mostra com guardar un notebook flatenat en 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
});
Mostra com guardar un notebook flatulent com a imatge.
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
Obté el format en el qual s’emmagatzema el notebook.
public abstract string SaveFormat
{
get;
}
Valor de la propietat
Methods
Obtenció d’opcions()
Obté les opcions d’estalvi per a tots els documents infantils del notebook.
public abstract SaveOptions GetDocumentSaveOptions()
{
return new SaveOptions();
}
Returns
Les opcions de salvament.SaveOptions.