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

Показује како да сачувате документ у ПДФ формату са распоредом странице Писма.

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

Показује како да сачувате документ у ПДФ формату са распоредом странице А4 без ограничења висине.

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

Добија подешавања за страницу формат А4.

public static PageSettings A4 { get; }

Вредност имовине

PageSettings

A4NoHeightLimit

Добија подешавања за страницу формат А4 са неограниченом висином.

public static PageSettings A4NoHeightLimit { get; }

Вредност имовине

PageSettings

Examples

Показује како да сачувате документ у ПДФ формату са распоредом странице А4 без ограничења висине.

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

Показује како да сачувате документ у ПДФ формату са распоредом странице Писма.

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

 Српски