Class PageSettings

Class PageSettings

Nama dari : Aspose.Note.Saving Perhitungan: Aspose.Note.dll (25.4.0)

Menampilkan tetapan layout untuk halaman.

public class PageSettings

Inheritance

object PageSettings

anggota yang diwarisi

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Menunjukkan cara menyimpan dokumen dalam format PDF dengan tata letak halaman Surat.

// 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 });

Menunjukkan cara menyimpan dokumen dalam format PDF dengan layout halaman A4 tanpa batas ketinggian.

// 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

Dapatkan pengaturan untuk halaman format A4.

public static PageSettings A4 { get; }

Nilai Properti

PageSettings

A4NoHeightLimit

Dapatkan pengaturan untuk halaman format A4 dengan ketinggian tak terbatas.

public static PageSettings A4NoHeightLimit { get; }

Nilai Properti

PageSettings

Examples

Menunjukkan cara menyimpan dokumen dalam format PDF dengan layout halaman A4 tanpa batas ketinggian.

// 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

Dapatkan pengaturan untuk halaman format Surat.

public static PageSettings Letter { get; }

Nilai Properti

PageSettings

Examples

Menunjukkan cara menyimpan dokumen dalam format PDF dengan tata letak halaman Surat.

// 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

Dapatkan pengaturan untuk halaman format Surat dengan ketinggian tak terbatas.

public static PageSettings LetterNoHeightLimit { get; }

Nilai Properti

PageSettings

 Indonesia