Class PageSettings

Class PageSettings

名称: Aspose.Note.Saving 合計: Aspose.Note.dll (25.4.0)

ページのレイアウト設定を表します。

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

相続人

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

Examples

手紙ページの配置でPDF形式で文書を保存する方法を示します。

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

高さ制限なしで A4 ページ配置で PDF 形式のドキュメントを保存する方法を示します。

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

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

不動産価値

PageSettings

A4NoHeightLimit

無制限の高さの A4 フォーマットページの設定を取得します。

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

不動産価値

PageSettings

Examples

高さ制限なしで A4 ページ配置で PDF 形式のドキュメントを保存する方法を示します。

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

文字形式のページの設定を取得します。

public static PageSettings Letter
   {
      get;
   }

不動産価値

PageSettings

Examples

手紙ページの配置でPDF形式で文書を保存する方法を示します。

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

無制限の高さの文字形式ページの設定を取得します。

public static PageSettings LetterNoHeightLimit
   {
      get;
   }

不動産価値

PageSettings

 日本語