Class PageSettings

Class PageSettings

Název místa: Aspose.Note.Saving Shromáždění: Aspose.Note.dll (25.4.0)

Představuje nastavení rozložení pro stránku.

public class PageSettings

Inheritance

object PageSettings

Dědiční členové

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

Examples

Ukazuje, jak uložit dokument ve formátu PDF s rozložení stránky dopisů.

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

Ukazuje, jak uložit dokument ve formátu PDF s rozložení stránky A4 bez limitu výšky.

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

Obdrží nastavení pro stránku formátu A4.

public static PageSettings A4 { get; }

Hodnota nemovitosti

PageSettings

A4NoHeightLimit

Obdrží nastavení pro stránku formátu A4 s neomezenou výškou.

public static PageSettings A4NoHeightLimit { get; }

Hodnota nemovitosti

PageSettings

Examples

Ukazuje, jak uložit dokument ve formátu PDF s rozložení stránky A4 bez limitu výšky.

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

Obdrží nastavení pro stránku Formát písma.

public static PageSettings Letter { get; }

Hodnota nemovitosti

PageSettings

Examples

Ukazuje, jak uložit dokument ve formátu PDF s rozložení stránky dopisů.

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

Obdrží nastavení pro stránku Formát písma s neomezenou výškou.

public static PageSettings LetterNoHeightLimit { get; }

Hodnota nemovitosti

PageSettings

 Čeština