Class PageSettings
Der Name: Aspose.Note.Saving Zusammensetzung: Aspose.Note.dll (25.4.0)
Es repräsentiert die Layout-Einstellungen für eine Seite.
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
Vererbte Mitglieder
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Zeigt, wie man ein Dokument in PDF-Format mit Letter-Seite-Layout speichert.
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 });
Zeigt, wie man ein Dokument in PDF-Format mit A4-Seite-Layout ohne Höhenbegrenzung speichert.
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
Erhält die Einstellungen für die A4-Format-Seite.
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
}
};
}
}
Eigentumswert
A4NoHeightLimit
Erhält Einstellungen für die A4-Format-Seite mit unbegrenzten Höhe.
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
};
}
}
Eigentumswert
Examples
Zeigt, wie man ein Dokument in PDF-Format mit A4-Seite-Layout ohne Höhenbegrenzung speichert.
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
Erhält Einstellungen für die Letter-Format-Seite.
public static PageSettings Letter
{
get;
}
Eigentumswert
Examples
Zeigt, wie man ein Dokument in PDF-Format mit Letter-Seite-Layout speichert.
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
Erhält Einstellungen für die Letter-Format-Seite mit unbegrenzten Höhe.
public static PageSettings LetterNoHeightLimit
{
get;
}