Class PageSettings

Class PageSettings

A név: Aspose.Note.Saving Összefoglaló: Aspose.Note.dll (25.4.0)

Az oldal elrendezésének beállításait képviseli.

public class PageSettings

Inheritance

object PageSettings

Örökletes tagok

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

Examples

Megmutatja, hogyan lehet menteni egy dokumentumot PDF formátumban a Letter page layout segítségével.

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

Megmutatja, hogyan lehet menteni egy dokumentumot PDF formátumban az A4 oldalsó elrendezéssel a magasság korlátozása nélkül.

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

Megkapja a beállításokat az A4-formátumú oldalon.

public static PageSettings A4 { get; }

ingatlan értéke

PageSettings

A4NoHeightLimit

Megkapja a beállításokat a korlátlan magasságú A4-formátumú oldalon.

public static PageSettings A4NoHeightLimit { get; }

ingatlan értéke

PageSettings

Examples

Megmutatja, hogyan lehet menteni egy dokumentumot PDF formátumban az A4 oldalsó elrendezéssel a magasság korlátozása nélkül.

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

Megkapja a beállításokat a Letter-format oldalra.

public static PageSettings Letter { get; }

ingatlan értéke

PageSettings

Examples

Megmutatja, hogyan lehet menteni egy dokumentumot PDF formátumban a Letter page layout segítségével.

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

Megkapja a beállításokat a korlátlan magasságú levelformátumú oldalra.

public static PageSettings LetterNoHeightLimit { get; }

ingatlan értéke

PageSettings

 Magyar