Class PageSettings

Class PageSettings

Nome do espaço: Aspose.Note.Saving Assembleia: Aspose.Note.dll (25.4.0)

Representa as configurações de layout para uma página.

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

Membros herdados

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

Examples

Mostra como salvar um documento em formato PDF com layout da página Carta.

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

Mostra como salvar um documento em formato PDF com layout de página A4 sem limite de altura.

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

Obtenha configurações para a página de formato 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
            }
         };
      }
   }

Valor da propriedade

PageSettings

A4NoHeightLimit

Obtenha configurações para a página de formato A4 com altura ilimitada.

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

Valor da propriedade

PageSettings

Examples

Mostra como salvar um documento em formato PDF com layout de página A4 sem limite de altura.

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

Obtenha configurações para a página de formato Letter.

public static PageSettings Letter
   {
      get;
   }

Valor da propriedade

PageSettings

Examples

Mostra como salvar um documento em formato PDF com layout da página Carta.

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

Obtenha configurações para a página de formato Letter com altura ilimitada.

public static PageSettings LetterNoHeightLimit
   {
      get;
   }

Valor da propriedade

PageSettings

 Português