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 με τη διάταξη σελίδας Letter.

// 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 με τη διάταξη σελίδας Letter.

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

 Ελληνικά