Class PageSettings
Tên không gian: Aspose.Note.Saving Tổng hợp: Aspose.Note.dll (25.4.0)
Hiển thị các cài đặt layout cho một trang.
public class PageSettings
Inheritance
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ị cách lưu một tài liệu trong định dạng PDF với bố trí trang Thư.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });
Hiển thị cách lưu một tài liệu trong định dạng PDF với bố trí trang A4 mà không có giới hạn chiều cao.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });
Properties
A4
Nhận cài đặt cho trang định dạng A4.
public static PageSettings A4 { get; }
Giá trị bất động sản
A4NoHeightLimit
Nhận cài đặt cho trang định dạng A4 với chiều cao không giới hạn.
public static PageSettings A4NoHeightLimit { get; }
Giá trị bất động sản
Examples
Hiển thị cách lưu một tài liệu trong định dạng PDF với bố trí trang A4 mà không có giới hạn chiều cao.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });
Letter
Nhận cài đặt cho trang văn bản định dạng.
public static PageSettings Letter { get; }
Giá trị bất động sản
Examples
Hiển thị cách lưu một tài liệu trong định dạng PDF với bố trí trang Thư.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });
LetterNoHeightLimit
Nhận cài đặt cho trang định dạng chữ với chiều cao không giới hạn.
public static PageSettings LetterNoHeightLimit { get; }