Class PageSettings

Class PageSettings

Името на пространството: Aspose.Note.Saving Асамблея: Aspose.Note.dll (25.4.0)

Представя настройките за разпределение на страница.

public class PageSettings

Inheritance

object PageSettings

наследници

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

стойност на имота

PageSettings

A4NoHeightLimit

Получава настройки за A4-форматната страница с неограничена височина.

public static PageSettings A4NoHeightLimit { get; }

стойност на имота

PageSettings

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

стойност на имота

PageSettings

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

стойност на имота

PageSettings

 Български