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

 Українська