Class PageSettings
ชื่อพื้นที่: Aspose.Note.Saving การประกอบ: Aspose.Note.dll (25.4.0)
แสดงการตั้งค่า layout สําหรับหน้า
public class PageSettings
Inheritance
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
แสดงวิธีการบันทึกเอกสารในรูปแบบ PDF ด้วยการจัดตั้งหน้าจดหมาย
// 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 });
แสดงวิธีการบันทึกเอกสารในรูปแบบ PDF ด้วยการจัดตั้งหน้า A4 โดยไม่มีข้อ จํากัด ความสูง
// 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
ได้รับการตั้งค่าสําหรับหน้ารูปแบบ A4
public static PageSettings A4 { get; }
คุณสมบัติมูลค่า
A4NoHeightLimit
ได้รับการตั้งค่าสําหรับหน้ารูปแบบ A4 ที่มีความสูงไม่ จํากัด
public static PageSettings A4NoHeightLimit { get; }
คุณสมบัติมูลค่า
Examples
แสดงวิธีการบันทึกเอกสารในรูปแบบ PDF ด้วยการจัดตั้งหน้า A4 โดยไม่มีข้อ จํากัด ความสูง
// 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
ได้รับการตั้งค่าสําหรับหน้ารูปแบบข้อความ
public static PageSettings Letter { get; }
คุณสมบัติมูลค่า
Examples
แสดงวิธีการบันทึกเอกสารในรูปแบบ PDF ด้วยการจัดตั้งหน้าจดหมาย
// 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
ได้รับการตั้งค่าสําหรับหน้ารูปแบบข้อความที่มีความสูงไม่ จํากัด
public static PageSettings LetterNoHeightLimit { get; }