Class PageSettings

Class PageSettings

Nazwa przestrzeń: Aspose.Note.Saving Zgromadzenie: Aspose.Note.dll (25.4.0)

Przedstawia ustawienia layout dla strony.

public class PageSettings

Inheritance

object PageSettings

Dziedziczeni członkowie

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

Examples

Pokaż, jak przechowywać dokument w formacie PDF z rozmieszczeniem strony litery.

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

Pokaż, jak zapisać dokument w formacie PDF z rozmieszczeniem strony A4 bez ograniczeń wysokości.

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

Otrzymuje ustawienia dla strony formatu A4.

public static PageSettings A4 { get; }

Wartość nieruchomości

PageSettings

A4NoHeightLimit

Otrzymuje ustawienia dla strony w formacie A4 o nieograniczonej wysokości.

public static PageSettings A4NoHeightLimit { get; }

Wartość nieruchomości

PageSettings

Examples

Pokaż, jak zapisać dokument w formacie PDF z rozmieszczeniem strony A4 bez ograniczeń wysokości.

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

Otrzymuje ustawienia dla strony w formacie litery.

public static PageSettings Letter { get; }

Wartość nieruchomości

PageSettings

Examples

Pokaż, jak przechowywać dokument w formacie PDF z rozmieszczeniem strony litery.

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

Otrzymuje ustawienia dla strony w formacie litery o nieograniczonej wysokości.

public static PageSettings LetterNoHeightLimit { get; }

Wartość nieruchomości

PageSettings

 Polski