Class NotebookSaveOptions
Tên không gian: Aspose.Note.Saving Tổng hợp: Aspose.Note.dll (25.4.0)
Một lớp cơ sở trừu tượng đại diện cho các tùy chọn lưu trữ máy tính xách tay cho một định dạng cụ thể.
public abstract class NotebookSaveOptions
{
}
Inheritance
Derived
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Hiển thị làm thế nào để lưu sổ ghi chép mờ trong định dạng 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
});
Hiển thị cách lưu sổ tay trong định dạng PDF với các tùy chọn được chỉ định.
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);
Hiển thị làm thế nào để tiết kiệm máy tính xách tay mờ như một hình ảnh.
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
Tính năng NotebookSaveOptions()
protected NotebookSaveOptions()
{
}
Properties
DeferredSaving
Nhận hoặc đặt một giá trị cho thấy liệu trẻ em có tài liệu hay khôngnên được giải cứu một cách rõ ràng.
public bool DeferredSaving
{
get;
set;
}
Giá trị bất động sản
Remarks
Giá trị mặc định là ‘không thực’, vì vậy các tài liệu trẻ em sẽ được lưu trữ một cách giả định.Value ’true’ là chỉ ra rằng người dùng nên lưu các nút trẻ của mỗi máy tính xách tay bằng cách rõ ràng.Nếu nó được tiết kiệm để phát, giá trị luôn ’thực tế’ mặc dù nó đã được đặt ra trực tiếp bởi người sử dụng để ’nhận’.
Flatten
Nhận hoặc đặt một giá trị cho thấy liệu bảng điều khiển trẻ em được tiết kiệm hay không.
public bool Flatten
{
get;
set;
}
Giá trị bất động sản
Examples
Hiển thị làm thế nào để lưu sổ ghi chép mờ trong định dạng 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
});
Hiển thị làm thế nào để tiết kiệm máy tính xách tay mờ như một hình ảnh.
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
Nhận định dạng mà sổ ghi chép được lưu.
public abstract string SaveFormat
{
get;
}
Giá trị bất động sản
Methods
Tài liệuSaveOptions()
Nhận các tùy chọn tiết kiệm cho tất cả tài liệu trẻ em của máy tính xách tay.
public abstract SaveOptions GetDocumentSaveOptions()
{
return new SaveOptions();
}
Returns
Các Aspose.Note.Saving .SaveOptions.