Class PageSettings

Class PageSettings

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

Przedstawia ustawienia layout dla strony.

public class PageSettings
{
    public bool IsFirstPage { get; set; }
    public bool IsLastPage { get; set; }
}
Or if you prefer, maintaining existing line breaks for readability:
public class PageSettings
{
    public bool IsFirstPage { get; set; }
    public bool IsLastPage { get; set; }
}

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.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
   oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });

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

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
   oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });

Properties

A4

Otrzymuje ustawienia dla strony formatu A4.

public static PageSettings A4
   {
      get
      {
         return new PageSettings
         {
            Orientation = Orientation.Portrait,
            PaperKind = PaperKind.A4,
            Margins = new MarginOptions
            {
               Left = 28,
               Right = 28,
               Top = 28,
               Bottom = 28
            }
         };
      }
   }

Wartość nieruchomości

PageSettings

A4NoHeightLimit

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

public static PageSettings A4NoHeightLimit
   {
      get
      {
         return new PageSettings
         {
            Orientation = Orientation.Portrait,
            PaperKind = PaperKind.A4,
            Margins = new MarginOptions
            {
               Left = 72,
               Right = 72,
               Top = 72,
               Bottom = 72
            },
            HeaderMargin = new MarginOptions { Left = 36, Right = 36 },
            FooterMargin = new MarginOptions { Left = 36, Right = 36 },
            HeaderDistance = 0,
            FooterDistance = 0,
            GutterDistance = 0,
            IsLandscape = false,
            StartPageNumber = 1,
            IsFirstPageIIDDefault = true,
            IsDifferentOddEvenHeadersFooters = false,
            IsMirrorMargins = false,
            IsApplyHeaderFooterAsTable = false
         };
      }
   }

Wartość nieruchomości

PageSettings

Examples

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

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
   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.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
   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